public void refreshData(final String flatXmlDataFile) {
new DbUnitTemplate(dataSource).execute(new DbUnitCallback() {
@Override
public void doInDbUnit(IDatabaseConnection connection) throws Exception {
InputStream in = getClass().getResourceAsStream(flatXmlDataFile);
IDataSetProducer producer = new FlatXmlProducer(new InputSource(in), false);
IDataSet dataSet = new StreamingDataSet(producer);
DatabaseOperation.REFRESH.execute(connection, dataSet);
}
});
}