Unitils is an open source library aimed at making unit testing easy and maintainable. Unitils builds further on existing libraries like dbunit and integrates with JUnit and TestNG.
Unitils provides general assertion utilities, support for database testing, support for testing with mock objects and offers integration with Spring, Hibernate and the Java Persistence API (JPA). It has been designed to offer these services to unit tests in a very configurable and loosely coupled way. As a result, services can be added and extended very easily.
Unitils offers following features:
2009-11-14 - Release of Unitils 3.1
This release contains some important fixes for the mock module.
The cglib, asm and objenesis dependencies are now also repackaged into the unitils-mock.jar. This will avoid version problems when your own project also uses versions of these libs, e.g. because you're using hibernate (which uses cglib).
Check the release notes for more details.
2009-10-12 - Release of Unitils 3.0
The unitils modules are now split up in separate applications and artifacts:
This makes it easier to setup everything and to manage the dependencies: just include the desired module as a test dependency. For example
<dependency>
<groupId>org.unitils</groupId>
<artifactId>unitils-mock</artifactId>
<version>3.0</version>
<scope>test</scope>
</dependency>
There is a new version of the mock framework, unitils-mock, containing lots of improvements. E.g. better support for partial mocking, better reports and some bug fixes.
We're starting up a wiki on which you can find extra information and code samples.
Check the release notes for more details.
2009-06-02 - Release of Unitils 2.3
This minor release contains a new implementation of the expected dataset behavior, new argument matchers for the mock mock framework and some other small features. It also contains important bug fixes for the mock framework. Check the release notes for more details.
2008-12-19 - Release of Unitils 2.1 and 2.2
Unitils 2.1 and 2.2 only contain bugfixes. The release of Unitils 2.1 was immediately followed by a release of version 2.2, because we found an important bug in the 2.1 release, and we had to bring out a new release since version 2.1 was already published in maven. Check the release notes for more details.
2008-10-28 - Release of Unitils 2.0
We're proud to announce the new major version! In this version adds a new module has been added for writing tests with mock objects. The DbMaintainer has been extended with a number of new features and several bugs were fixed. Take a look at the migration page to know what must be done to migrate to version 2.0.
2008-06-25 - Release of Unitils 1.1
This release includes support for MsSql, some bug fixes and a few small improvements.