Filewatcher File Search File Search
Content Search
» » » » »


Java library for testing code with mock objects

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.
Package version:2.5.1+dfsg-2


Advantages of jMock 2 over jMock 1

* Uses real method calls, not strings: can refactor more easily and
  autocomplete in the IDE.
* Customisation by delegation, not by inheritance
* Many more plugin-points for customisation
* Independent of any testing framework: compatability with the testing
  framework is a plugin-point.
* Can mock concrete classes *without* 


jmock2 (2.5.1+dfsg-2) unstable; urgency=low

  * Team upload.
  * Fix FTBFS with new libhamcrest-java >= 1.2 by backporting upstream changes
    from 2.6.x release (Closes: #662811).
  * d/control: Bump Standards-Version to 3.9.3: no changes needed.
  * d/copyright: Upgrade from DEP5 to copyright format 1.0.
  * d/control: Remove Depends on JRE as per Java Policy.

 -- Damien Raude-Morvan <drazzib


Features planned for post 2.0.0:

- TestNG
    Can't work out how to verify mocks before running tear-down methods.
    Is this possible at all in TestNG?

- Paranamer and OGNL
    An action that can call back to parameters identified by name.
    Maybe an optional plug-in, since some people are uncomfortable about
    the loss of static typing this would introduce


Upstream-Name: jMock2

Browse inside libjmock2-java_2.5.1+dfsg-2_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libjmock2-java_2.5.1+dfsg-2_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017