EasyMock : Links

#

Home Downloads Documentation Release Notes License User Comments Links

## Links

This section links to information related to EasyMock and Mock Objects.

### Issue tracker

Any issues or feature requests should be in Codehaus Jira.

### Mailing list

The EasyMock Yahoo!Group is available at http://groups.yahoo.com/group/easymock.

### Clover

EasyMock checks its code coverage using Clover. A delivery always has a 100% coverage. You can find the report for the latest EasyMock build here.

### EasyMock in Books

- Pragmatic Unit Testing in Java with JUnit by Andy Hunt and Dave Thomas (available at their site).
- Test Driven Development: A Practical Guide by David Astels (listed on amazon.com).
- JUnit in Action by Vincent Massol (listed on amazon.com).
- Unit Testing in Java: How Tests Drive the Code by Johannes Link and Peter Fröhlich (listed on amazon.com).
- In german: Testgetriebene Entwicklung mit JUnit & FIT. Wie Software änderbar bleibt by Frank Westphal (listed on amazon.de).
- In german: Unit Tests mit Java. Der Test-First-Ansatz by Johannes Link and Peter Fröhlich (listed on amazon.de).

### EasyMock in Presentations and Papers

- http://www.agilealliance.org/articles/freesetammoeasymockdy/file
  I presented a work-in-progress version of EasyMock at the XP2002 conference in my paper EasyMock: Dynamic Mock Objects for JUnit.
- http://www.agilealliance.com/articles/mooreivanpalmersebast/file
  Ivan Moore and Sebastian Palmer compare Mock Object generators including EasyMock in their XP2002 paper Making a Mockery.
- Dave Thomas and Andy Hunt mentioned EasyMock in their article Mock Objects published in IEEE Software May/June 2002.

### Online Resources

- http://refcardz.dzone.com/refcardz/junit-and-easymock
  A free refcard on JUnit and EasyMock.
- http://www.michaelminella.com/testing/unit-testing-with-junit-and-easymock.html
  Michael Minella wrote a tutorial on Unit Testing with JUnit and EasyMock.

### EasyMock Ports to .Net

- Rhino.Mocks was created by Oren Eini and is a rollout from EasyMock.NET. It is still actively supported
- EasyMock.NET was developped by Marco Struck and Matthias Jantz from MSBK Proximity. It was the first port of EasyMock to .Net. However, this project doesn't seem supported anymore.

### Mock Objects in General

- http://www.mockobjects.com
  contains a lot of Mock Object-related information.
- http://www.michaelminella.com/testing/the-concept-of-mocking.html
  Some information on the concept of mocking.

### EasyMock Alternatives and Add-ins

- Powermock is built on top of EasyMock. It uses a custom classloader and bytecode manipulation to enable mocking of static methods, constructors, final classes and methods, private methods, removal of static initializers and more.
- easymock-propertyutils is an add-in to EasyMock. It allows to use JavaBeans-style property matching for arguments when using EasyMock. Property matching is based on commons-beanutils as documented in Standard JavaBeans.
- jMock is another dynamic Mock Object generator for Java that was first released two years after EasyMock. It uses another approach to define expectations that results in more flexibility to set expectations (you may specify almost everything imaginable) at the cost of less flexibility when refactoring (refactorings like method renaming and parameter reordering will break the tests) and loss of code completion when defining expectations or test-driving code.
- Mockito is a lot like EasyMock but ordering steps a little differently. Mockito doesn't understand the notion of 'expectation'. There is only stubbing and verifications.
- Hamcrest is a library of matcher objects that can be used with EasyMock.

© 2001-2013 Tammo Freese, Henri Tremblay