use of org.junit.After in project head by mifos.
the class SavingsClosureActionStrutsTest method tearDown.
@After
public void tearDown() throws Exception {
SecurityContext securityContext = new SecurityContextImpl();
SecurityContextHolder.setContext(securityContext);
savings = null;
client1 = null;
client2 = null;
client3 = null;
client4 = null;
group = null;
center = null;
}
use of org.junit.After in project hibernate-orm by hibernate.
the class NativeQuerySyncSpaceCachingTest method after.
@After
public void after() {
Session session = sessionFactory().openSession();
session.beginTransaction();
session.createQuery("delete Customer").executeUpdate();
session.getTransaction().commit();
session.close();
}
use of org.junit.After in project head by mifos.
the class MifosIntegrationTestCase method after.
@After
public void after() throws Exception {
diableCustomWorkingDays();
TestUtils.dereferenceObjects(this);
DatabaseDependentTest.after(new AuditInterceptorFactory(), sessionFactory);
dbVerificationTearDown();
}
use of org.junit.After in project head by mifos.
the class LoanArrearsAgingHelperIntegrationTest method tearDown.
@After
public void tearDown() throws Exception {
new DateTimeService().resetToCurrentSystemDateTime();
loanArrearsAgingHelper = null;
loanArrearHelper = null;
MifosConfigurationManager.getInstance().setProperty(AccountingRulesConstants.CURRENCY_ROUNDING_MODE, oldRoundingMode);
StaticHibernateUtil.flushAndClearSession();
}
use of org.junit.After in project OpenAttestation by OpenAttestation.
the class TextConsoleTest method tearDown.
@After
public void tearDown() {
try {
File file2 = new File("system_err.txt");
file2.delete();
} catch (Exception e) {
System.out.println("error message " + e.toString());
}
}
Aggregations