The Hibernate test module provides an environment for testing Hibernate based applications. It is similar to the Mockrunner JDBC test framework, i.e. you have to set up the result for queries. It implements the most important Hibernate interfaces and uses a memory based repository for persistent objects. It may be used as the base for a mock implementation of the EJB 3.0 persistence standard. At the moment it supports Hibernate 2.1.
The Hibernate test module is part of the MockJDO subproject. Although not complete yet, it should fit the needs of most applications. There are no official releases available yet, you have to get it from CVS and compile it. There is a very simple example included.
The CVS module name is mockjdo.