Unitils is a new open source library aimed at simplifying unit testing using JUnit or TestNG.
Unitils builds further on existing libraries like DBUnit and EasyMock. It was started as a small framework of base classes, providing support for a number of guidelines and best practices in unit testing.
Currently Unitils offers following features:
General testing utilities:
* Equality assertion through reflection, with different options like ignoring Java default/null values and ignoring order of collections
Database testing utilities:
* Automatic maintenance and constraints disabling of unit test databases
* Simplify unit test database connection setup
* Simplify insertion of test data with DBUnit
* Simplify Hibernate session management for unit testing
* Automatically test the mapping of Hibernate mapped objects with the database
Mock object utilities:
* Simplify EasyMock mock object creation
* Simplify mock object injection
* EasyMock argument matching using reflection equality
The project also includes an extensive set of testing guidelines, which can be found on the project's web site.
Project Web Site:
http://unitils.sourceforge.net/
Download Page:
http://sourceforge.net/project/showfiles.php?group_id=167201