jMock 2 is a library for testing Java code using mock objects.

See:
          Description

jMock 2
org.jmock The jMock "Domain-Specific Embedded Language" API.
org.jmock.api The stable API that is used to extend jMock at it's published plug-in points.
org.jmock.integration.junit3 Integrates jMock with JUnit 3.
org.jmock.integration.junit4 Integrates jMock with JUnit 4.
org.jmock.lib Implementations of the core interfaces that are used to adjust or extend jMock's basic functionality.
org.jmock.lib.action Actions that fake the behaviour of mocked invocations.
org.jmock.lib.legacy Plugins that make it easier to use jMock with legacy code.
org.jmock.syntax Interfaces that define jMock's Domain Specific Embedded Language.

 

Hamcrest API
org.hamcrest The stable API defining Matcher and its associated interfaces and classes.

 

Hamcrest Matcher Library
org.hamcrest.beans Matchers of Java Bean properties and their values.
org.hamcrest.collection Matchers of arrays and collections.
org.hamcrest.core Fundamental matchers of objects and values, and composite matchers.
org.hamcrest.number Matchers that perform numeric comparisons.
org.hamcrest.object Matchers that inspect objects and classes.
org.hamcrest.text Matchers that perform text comparisons.
org.hamcrest.xml Matchers of XML documents.

 

jMock 2 is a library for testing Java code using mock objects. Mock objects help you design and test the interactions between the objects in your programs.

jMock 2:

More information can be found on the jMock website (www.jmock.org).