ANN: DbUnit version 1.5 released!
- DbUnit is a JUnit extension (also usable from Ant) targeted for
database-driven projects that, among other things, puts your database
into a known state between test runs. This is an excellent way to
avoid the myriad of problems that can occur when one test case
corrupts the database and causes subsequent tests to fail or
exacerbate the damage.
DbUnit has the ability to export and import your database (or
specified tables) content to and from XML datasets. This is targeted
for unit testing, so this is not the perfect tool to backup a huge
DbUnit also provides assert facility to verify that your database
content match some expected values.
The DbUnit Home is located at http://www.dbunit.org/