The Open Enterprise Foundation


HiMock is a Mock Objects Library for java from

It to help test the interactions of objects in isolation using Mock Objects.

This Library distributable under GNU Lesser General Public License.

Mock Objects

In a typical JUnit test, some data is set up that is passed to the code under test, and the return value is verified. All this does is test data — or state.

Mock Objects allow the classes surrounding the class under to test to be replaced with fake or mock versions. This allows a class to be tested in isolation from its dependencies.

To get more information on Mock Objects, visit