jmock2 - Test Java code using mock objects

Property Value
Distribution RPM Universal
Repository JPackage 5.0 Updates all
Package name jmock2
Package version 2.5.1
Package release 1.jpp5
Package architecture noarch
Package type rpm
Installed size 845.81 KB
Download size 195.95 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.4.0-1.jpp5.noarch.rpm 2.4.0 noarch JPackage 5.0
jmock2 - - -


Name Value
bsh2 -
cglib >= 2.1.3
hamcrest -
junit >= 3.8.1
junit44 -
objenesis -


Name Value
jmock2 = 2.5.1-1.jpp5


Type URL
Binary Package jmock2-2.5.1-1.jpp5.noarch.rpm
Source Package jmock2-2.5.1-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 Updates repository:
    # zypper addrepo jpackage-5.0-updates
  2. Install jmock2 rpm package:
    # zypper install jmock2
Mandriva, Mageia:
  1. Add the JPackage 5.0 Updates repository:
    # urpmi.addmedia jpackage-5.0-updates with
  2. Update packages list:
    # urpmi.update -a
  3. Install jmock2 rpm package:
    # urpmi jmock2




2011-05-16 - Ralph Apel <r.apel at> - 0:2.5.1-1
- 2.5.1
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.5.1-1.jpp5.noarch.rpm Javadoc for jmock2
tomcat6-6.0.36-1.jpp5.noarch.rpm Apache Servlet/JSP Engine, RI for Servlet 2.5/JSP 2.1 API
tomcat6-admin-webapps-6.0.36-1.jpp5.noarch.rpm The host-manager and manager web applications for Apache Tomcat
tomcat6-docs-webapp-6.0.36-1.jpp5.noarch.rpm The docs web application for Apache Tomcat
tomcat6-el-1.0-api-6.0.36-1.jpp5.noarch.rpm Expression Language v1.0 API
tomcat6-javadoc-6.0.36-1.jpp5.noarch.rpm Javadoc generated documentation for Apache Tomcat
tomcat6-jsp-2.1-api-6.0.36-1.jpp5.noarch.rpm Apache Tomcat JSP API implementation classes
tomcat6-lib-6.0.36-1.jpp5.noarch.rpm Libraries needed to run the Tomcat Web container
tomcat6-servlet-2.5-api-6.0.36-1.jpp5.noarch.rpm Apache Tomcat Servlet API implementation classes
tomcat6-webapps-6.0.36-1.jpp5.noarch.rpm The ROOT and examples web applications for Apache Tomcat
ws-jaxme052-0.5.2-4.jpp5.noarch.rpm Open source implementation of JAXB
ws-jaxme052-javadoc-0.5.2-4.jpp5.noarch.rpm Javadoc for ws-jaxme052
ws-jaxme052-manual-0.5.2-4.jpp5.noarch.rpm Documents for ws-jaxme052