Unitils is an open source library aimed at making unit and integration testing easy and maintainable.
It is divided into several modules, each of them providing extra support for a certain aspect of your unit and integration tests. If you for example need mocking for your tests, just include unitils-mock as a dependency. If you would also want to load DbUnit data sets, just include unitils-dbunit.
Below you can find a list of the modules and their features. Click on the title to go to the corresponding tutorial and examples.
Mock module - Makes mocking easy and maintainable
Inject module - Easily inject test artifacts into classes and instances
IO module - Support for performing IO in tests
Database testing - Support for testing with databases and loading of DbUnit data sets
Automatic test database maintenance - Use DbMaintain to automatically bring your unit test databases up to date before running your tests
Hibernate module - Support for Hibernate database testing
Spring module - Support for testing when your project uses Spring
EasyMock module - Helps you set up tests that use EasyMock as a mocking framework
2011-12-22 - Release of Unitils 3.3
In this release a brand new module was added: io-unitils. This module adds support for creating temporary files or directories and for the loading of a file contents into a field. Take a look at the tutorial for more info.
We've also rolled out a first version of our new site layout.
Check the release notes for more details.
2011-09-29 - Release of Unitils 3.2
It's been a while since our last release, but now we're back. There's a new team, we're completely redoing the website and there are a lot of new features in the pipeline.
This first release contains an update of the mocking and inject module and some minor fixes to the reflection assert.
A 3.3 release is planned for the end of October, a new major release is planned for the beginning of next year.
Check the release notes for more details.