Annotation Type DbUnitInit
-
@Retention(RUNTIME) @Inherited @Documented @Target(TYPE) public @interface 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() { } }
-
-
Element Detail
-
sql
String[] sql
Set of SQL scripts to load- Returns:
- SQL scripts file to load.
- Default:
- {}
-
-