About jMock

jMock is a library that supports test-driven development1 of Java2 code with mock objects3.

Mock objects help you design and test the interactions between the objects in your programs.

The jMock library:

Links:

1. test-driven development: http://www.c2.com/cgi/wiki?TestDrivenDevelopment

2. Java: http://java.sun.com

3. mock objects: http://www.mockobjects.com/

4. Download it!: http://www.jmock.org/download.html

5. Use it!: http://www.jmock.org/getting-started.html

Recent News

How To Override Expectations Defined in the Test Set-Up

21 Jan 2008 14:00:00 GMT

The cookbook has a new page that explains how a test can override expectations that are defined during test set-up.

How To Use jMock with Languages Other Than Java

03 Jan 2008 12:30:00 GMT

The cookbook has a new page that links to articles explaining how to use jMock with languages other than Java. At the moment, Groovy and Scala are covered. More languages will be added in the future.

jMock 2.4.0 Released

30 Oct 2007 12:00:00 GMT

JMock 2.4.0 has been released. The most significant change is that jMock no longer allows mock objects to have the same name. This may break some poorly written tests. The full list of changes is reported by JIRA.

jMock 2.4.0-RC1 Released

10 Oct 2007 12:00:00 GMT

JMock 2.4.0-RC1 has been released. The most significant change is that jMock no longer allows mock objects to have the same name. This may break some poorly written tests. The full list of changes is reported by JIRA.

jMock 2.3.0 Released

01 Oct 2007 12:00:00 GMT

JMock 2.3.0 has been released. This release brings the JUnit 4 support in jMock 2 in line with JUnit version 4.4 and adds a few minor improvements, such as tweaks to error messages.

News feed (RSS 2.0)