Spring DBunit provides DBUnit add-ons for Spring Framework.
It allows you to easily insert and cleanup test data into the database of your choice.
Use cases examples :
Starting from 1.4.0, releases are in Maven Central, all you need to add to your POM is:
<dependency>
<groupId>com.excilys.ebi.spring-dbunit</groupId>
<!-- or spring-dbunit-servlet -->
<artifactId>spring-dbunit-test</artifactId>
<version>1.4.0</version>
</dependency>
For older versions of Spring DBUnit, read the Maven Wiki page.
Note that you need version 1.1.X of DBUnit if you use Spring 3.X
Have a look at these Wiki pages for documentation :
Spring DBUnit is released under the Apache Software License v2.0 (See LICENSE file)