jmock2 - Test Java code using mock objects

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


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


Name Value
jmock2 = 2.5.1-2.jpp6


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




2012-11-01 - Will Tatam <> 2.5.1-2
- Auto rebuild for JPackage 6 in centos5 mock
2011-06-30 - Ralph Apel <r.apel at> - 0:2.5.1-1
- 2.5.1 patched to Java6
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

See Also

Package Description
jmock2-javadoc-2.5.1-2.jpp6.noarch.rpm Javadoc for jmock2
jms-integration-tests-1.0.1-2.jpp6.noarch.rpm JMS Integration Tests
jms-integration-tests-repolib-1.0.1-2.jpp6.noarch.rpm Artifacts to be uploaded to a repository library
jna-3.2.7-14.jpp6.x86_64.rpm Java Native Access
jna-javadoc-3.2.7-14.jpp6.x86_64.rpm Javadoc for jna
jna-posix-1.0.1-2.jpp6.noarch.rpm Java POSIX emulation layer
jna-posix-javadoc-1.0.1-2.jpp6.noarch.rpm Javadoc for jna-posix
jna-repolib-3.2.7-14.jpp6.x86_64.rpm Artifacts to be uploaded to a repository library
joda-time-1.6.2-3.jpp6.noarch.rpm Date and time library to replace JDK date handling
joda-time-javadoc-1.6.2-3.jpp6.noarch.rpm Javadoc for joda-time
joda-time-manual-1.6.2-1.jpp6.noarch.rpm Docs for joda-time
joesnmp-0.3.4-4.jpp6.noarch.rpm Java SNMP class library
joesnmp-javadoc-0.3.4-4.jpp6.noarch.rpm Javadoc for joesnmp
joesnmp-repolib-0.3.4-4.jpp6.noarch.rpm Artifacts to be uploaded to a repository library
jonathan-core-4.1-4.jpp6.noarch.rpm Distributed Object Platform (DOP) written entirely in Java