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:

Get jMock4 Get started5 Get the Book6


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. Get jMock: http://www.jmock.org/download.html

5. Get started: http://www.jmock.org/getting-started.html

6. Get the Book: http://www.growing-object-oriented-software.com/

Recent News

Japanese version of Mock Roles, Not Objects

09 Sep 2011 22:39:59 GMT

We're very grateful to Yukei Wachi for translating our Mock Roles Not Objects paper into Japanese. You can download it from here.

jMock 2.6.0-RC2 Released

01 Sep 2010 06:59:59 GMT

JMock 2.6.0 RC2 has been released. This release adds a new auto-mocking functionality that reduces boilerplate code, support for testing multitheaded code, a Mockery that works with JUnit's rules mechanism and better failure diagnostics. The full changelist is in JIRA.

How to Mock Asynchronous GWT Services

19 Feb 2009 19:45:00 GMT

The cookbook has a new page that explains how to mock asynchronous GWT services with jMock.

jMock 2.6.0-RC1 Released

07 Dec 2008 11:10:00 GMT

JMock 2.6.0 RC1 has been released. This release is mainly concerned with upgrading its supporting libraries, moving to Cglib 2.2, JUnit 4.5, and Hamcrest 1.2 (RC), plus some minor fixes and improvements. The full changelist is in JIRA.

jMock 2.5.1 Released

24 Aug 2008 11:10:00 GMT

JMock 2.5.1 has been released. This is a bug-fix release that improves test failure diagnostics. The full changelist is in JIRA.

jMock Extensions

13 Aug 2008 01:45:00 GMT

A new page has been added to the jmock website that lists optional and third-party jMock extensions.

News feed (RSS 2.0)