Annotation Type DbUnitInit
DbUnit initialization: allow user to run SQL scripts before
loading DbUnit data set.
This annotation can be used on:
- Class (i.e test class).
- Package (i.e package where test classes belongs)
@DbUnitInit(sql = "/sql/schema.sql")
@DbUnitDataSet("/dataset/xml")
public class TestClass {
@Rule
public DbUnitRule rule = new DbUnitRule(connectionFactory);
@Test
public void test1() {
}
}
-
Optional Element Summary
Optional Elements
-
Element Details
-
sql
-
delimiter
char delimiterDelimiter for these set of SQL scripts.- Returns:
- Delimiter.
- Default:
';'
-