About jMock

JMock is a library that supports test-driven development 1 of Java 2 code with mock objects 3.

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

The jMock library:

  • makes it quick and easy to define mock objects, so you don't break the rhythm of programming.
  • lets you precisely specify the interactions between your objects, reducing the brittleness of your tests.
  • works well with the autocompletion and refactoring features of your IDE
  • plugs into your favourite test framework
  • is easy to extend.

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. Get jMock: https://mvnrepository.com/artifact/org.jmock

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

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

Recent News

jMock 2.13.1 Released

16 March 2024

JMock 2.13.1 has been released.

jMock 2.11.0 Released

5 April 2019

JMock 2.11.0 has been released.

jMock 2.10.0-RC3 Released

12 November 2018

JMock 2.10.0-RC3 has been released. This release supports JDK11, and JUnit5 see README

jMock 2.9.0 Released

23 September 2017

JMock 2.9.0 has been released. This release drops Java6 compilance, and improves threading support.

jMock 2.6.0 Released

19 December 2012 18:47:00 GMT

JMock 2.6.0 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

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.

News feed (RSS 2.0)

AltStyle によって変換されたページ (->オリジナル) /