super.setUp(firstTable, testResults);
}
@Override
public void tearDown(Table firstTable, TestResults testResults) {
DBEnvironment environment = workingEnvironment();
try {
JTesterLogger.info("tearDown dbfit table");
if (environment == null) {
return;
}
RunIn runIn = DbFitContext.getRunIn();
boolean isEnabledTransaction = TestedObject.isTransactionsEnabled();
if (runIn == RunIn.TestCase) {
JTesterLogger.info("run in testcase, isEnabledTransaction:" + isEnabledTransaction);
}
if (runIn == RunIn.TestCase && isEnabledTransaction == false) {
commit();
}
environment.teardown();
} catch (Throwable e) {
this.exception(firstTable.parse, e);
}
super.tearDown(firstTable, testResults);
}