Database Rider integrates DBUnit and JUnit in order to make database testing a breeze!
Here are some features:
@Rule
public DBUnitRule dbUnitRule = DBUnitRule.instance(jdbcConnection);
@Test
@DataSet(value = "datasets/yml/users.yml")
public void shouldSeedDataSet(){
//database is seed with users.yml dataset
}
CDI integration via interceptor;
JSON, YAML, XML, XLS, and CSV dataset format support;
Configuration via annotations or yml files;
Cucumber integration;
Multiple database support;
Date/time support in datasets;
Scriptable datasets with groovy and javascript;
Regular expressions in expected datasets;
JUnit 5 integration;
DataSet export;
Connection leak detection;
Lot of examples.
Current version (under development) of documentation can be found here.
Following is documentation for each released version:
An introdutory guide with a sample application can be found here.