use of org.junit.After in project cas by apereo.
the class SearchModeSearchDatabaseAuthenticationHandlerTests method tearDown.
@After
public void tearDown() throws Exception {
final Connection c = this.dataSource.getConnection();
final Statement s = c.createStatement();
c.setAutoCommit(true);
for (int i = 0; i < 5; i++) {
s.execute("delete from casusers;");
}
c.close();
}
use of org.junit.After in project hbase by apache.
the class TestLockManager method tearDown.
@After
public void tearDown() throws Exception {
for (ProcedureInfo procInfo : getMasterProcedureExecutor().listProcedures()) {
Procedure proc = getMasterProcedureExecutor().getProcedure(procInfo.getProcId());
if (proc instanceof LockProcedure) {
((LockProcedure) proc).unlock(getMasterProcedureExecutor().getEnvironment());
ProcedureTestingUtility.waitProcedure(getMasterProcedureExecutor(), proc);
}
}
assertEquals(0, getMasterProcedureExecutor().getEnvironment().getProcedureScheduler().size());
}
use of org.junit.After in project hibernate-orm by hibernate.
the class BaseEnversJPAFunctionalTestCase method releaseUnclosedEntityManagers.
@After
@SuppressWarnings({ "UnusedDeclaration" })
public void releaseUnclosedEntityManagers() {
releaseUnclosedEntityManager(this.em);
auditReader = null;
for (EntityManager isolatedEm : isolatedEms) {
releaseUnclosedEntityManager(isolatedEm);
}
}
use of org.junit.After in project head by mifos.
the class AccountRegenerateScheduleIntegrationTestCase method tearDown.
@After
public void tearDown() throws Exception {
try {
savingsBO = null;
accountBO = null;
client = null;
group = null;
center = null;
// savingsBO = null;
// accountBO = null;
// client = null;
// group = null;
// center = null;
legacyAccountDao = null;
} catch (Exception e) {
// TODO Whoops, cleanup didnt work, reset db
} finally {
StaticHibernateUtil.flushSession();
}
new DateTimeService().resetToCurrentSystemDateTime();
}
use of org.junit.After in project head by mifos.
the class RepayLoanActionStrutsTest method tearDown.
@After
public void tearDown() throws Exception {
new ConfigurationPersistence().updateConfigurationKeyValueInteger(LoanConstants.REPAYMENT_SCHEDULES_INDEPENDENT_OF_MEETING_IS_ENABLED, lsim);
new DateTimeService().resetToCurrentSystemDateTime();
accountBO = null;
group = null;
center = null;
}
Aggregations