if (dataSource == null) {
LOGGER.debug("pas d'Initializing de la dataSource");
return;
}
final IDatabaseTester databaseTester = new DataSourceDatabaseTester(
dataSource);
final IDataSet dataSet = loadDataSet();
if (dataSet != null) {
// DBUnit setup
LOGGER.debug("Initializing DBUnit DataSet");
databaseTester.setDataSet(dataSet);
databaseTester.setSetUpOperation(getDatabaseSetupOperation());
databaseTester.setTearDownOperation(getDatabaseTearDownOperation());
databaseTester.onSetup();
} else {
LOGGER.debug("pas d'Initializing DBUnit DataSet");
}
}