dataLoader.execute(testContext.getApplicationContext(), getConfiguration(testContext), Phase.TEARDOWN);
}
}
private void checkDatas(TestContext testContext) throws Exception {
ExpectedDataSetConfiguration expectedConfiguration = getExpectedConfiguration(testContext);
if (expectedConfiguration != null) {
IDataSet expectedDataSet = expectedConfiguration.getDataSet();
for (String tableName : expectedDataSet.getTableNames()) {
IDataSet dataSet = dataReader.execute(testContext.getApplicationContext(), getExpectedConfiguration(testContext), tableName);
String[] columnsToIgnore = expectedConfiguration.getColumnsToIgnore();
if (columnsToIgnore == null || columnsToIgnore.length == 0) {
Assertion.assertEquals(expectedDataSet, dataSet);
} else {
Assertion.assertEqualsIgnoreCols(expectedDataSet, dataSet, tableName, columnsToIgnore);
}