use of org.jbehave.core.annotations.BeforeStory in project jbehave-core by jbehave.
the class DbUnitSteps method deleteAllData.
@BeforeStory
public void deleteAllData() throws SQLException, DatabaseUnitException {
DatabaseDataSourceConnection dbConn = new DatabaseDataSourceConnection(dataSource);
IDataSet dataSet = dbConn.createDataSet(new String[] { "ORGANIZATION", "APPLICATION_USER" });
DatabaseOperation.DELETE_ALL.execute(dbConn, dataSet);
}
Aggregations