jmock2 - Test Java code using mock objects

Property Value
Distribution RPM Universal
Repository JPackage 5.0 all
Package name jmock2
Package version 2.4.0
Package release 1.jpp5
Package architecture noarch
Package type rpm
Installed size 351.42 KB
Download size 287.62 KB
Official Mirror
jMock is a library that supports test-driven development
of Java2 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 Architecture Repository
jmock2-2.5.1-2.jpp6.noarch.rpm 2.5.1 noarch JPackage 6.0
jmock2-2.5.1-1.jpp5.noarch.rpm 2.5.1 noarch JPackage 5.0 Updates
jmock2 - - -


Name Value
cglib >= 2.1.3
hamcrest -
junit >= 3.8.1
junit4 >= 4.4
objenesis -


Name Value
jmock2 = 2.4.0-1.jpp5


Type URL
Binary Package jmock2-2.4.0-1.jpp5.noarch.rpm
Source Package jmock2-2.4.0-1.jpp5.src.rpm

Install Howto

Fedora, CentOS, RHEL:
  1. Download latest jpackage-release rpm from
  2. Install jpackage-release rpm:
    # rpm -Uvh jpackage-release*rpm
  3. Install jmock2 rpm package:
    # yum install jmock2
  1. Add the JPackage 5.0 repository:
    # zypper addrepo jpackage-5.0
  2. Install jmock2 rpm package:
    # zypper install jmock2
Mandriva, Mageia:
  1. Add the JPackage 5.0 repository:
    # urpmi.addmedia jpackage-5.0 with
  2. Update packages list:
    # urpmi.update -a
  3. Install jmock2 rpm package:
    # urpmi jmock2




2008-06-18 - Ralph Apel <r.apel at> - 0:2.4.0-1.jpp5
- 2.4.0 as jmock2
2007-07-17 - Ralph Apel <r.apel at> - 0:1.2.0-1jpp
- Upgrade to 1.2.0
- Add poms and depmap frags
- Make Vendor, Distribution based on macro
2007-02-23 - Ralph Apel <r.apel at> - 0:1.0.1-4jpp
- Patch to current junit
- Add gcj_support option
2006-02-17 - Ralph Apel <r.apel at> - 0:1.0.1-3jpp
- Require cglib-nohook instead of cglib to break circular dependency
2006-01-04 - Fernando Nasser <> - 0:1.0.1-2jpp
- First JPP 1.7 build
2005-03-16 - Ralph Apel <r.apel at> - 0:1.0.1-1jpp
- Upgrade to 1.0.1
- Patch to adapt to asm-1.5.3
- Built with asm-1.5.3 and cglib-2.1.0
2004-08-23 - Randy Watler <rwatler at> - 0:1.0.0-3jpp
- Rebuild with ant-1.6.2
- Upgrade to Ant 1.6.X
2004-06-04 - Ralph Apel <r.apel at> - 0:1.0.0-2jpp
- Graduate to free section for use with qdox-1.4
2004-06-01 - Ralph Apel <r.apel at> - 0:1.0.0-1jpp
- First JPackage release

See Also

Package Description
jmock2-javadoc-2.4.0-1.jpp5.noarch.rpm Javadoc for jmock2
jna-3.0.3-4.jpp5.noarch.rpm Java Native Access
jna-javadoc-3.0.3-4.jpp5.noarch.rpm Javadoc for jna
jna-posix-0.6-2.jpp5.noarch.rpm Java POSIX emulation layer
jna-posix-javadoc-0.6-2.jpp5.noarch.rpm Javadoc for jna-posix
joda-time-1.5.2-1jpp.noarch.rpm Java date and time API
joda-time-javadoc-1.5.2-1jpp.noarch.rpm Javadoc for joda-time
joda-time-manual-1.5.2-1jpp.noarch.rpm Docs for joda-time
joesnmp-0.3.4-2.jpp5.noarch.rpm Java SNMP class library
joesnmp-javadoc-0.3.4-2.jpp5.noarch.rpm Javadoc for joesnmp
joesnmp-repolib-0.3.4-2.jpp5.noarch.rpm Artifacts to be uploaded to a repository library
jonathan-core-4.1-3.jpp5.noarch.rpm Distributed Object Platform (DOP) written entirely in Java
jonathan-core-javadoc-4.1-3.jpp5.noarch.rpm Javadoc for jonathan-core
jonathan-jeremie-4.2.2-2.jpp5.noarch.rpm Distributed Object Platform (DOP) written entirely in Java
jonathan-jeremie-javadoc-4.2.2-2.jpp5.noarch.rpm Javadoc for jonathan-jeremie