Search in sources :

Example 16 with After

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;
}
Also used : SecurityContextImpl(org.springframework.security.core.context.SecurityContextImpl) SecurityContext(org.springframework.security.core.context.SecurityContext) After(org.junit.After)

Example 17 with After

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();
}
Also used : Session(org.hibernate.Session) After(org.junit.After)

Example 18 with After

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();
}
Also used : AuditInterceptorFactory(org.mifos.framework.hibernate.helper.AuditInterceptorFactory) After(org.junit.After)

Example 19 with After

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();
}
Also used : DateTimeService(org.mifos.framework.util.DateTimeService) After(org.junit.After)

Example 20 with After

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());
    }
}
Also used : File(java.io.File) IOException(java.io.IOException) After(org.junit.After)

Aggregations

After (org.junit.After)1404 File (java.io.File)284 Before (org.junit.Before)137 Test (org.junit.Test)127 List (java.util.List)87 IOException (java.io.IOException)82 Assert (org.junit.Assert)70 Collectors (java.util.stream.Collectors)67 ArrayList (java.util.ArrayList)64 Map (java.util.Map)62 Assert.assertEquals (org.junit.Assert.assertEquals)60 Arrays (java.util.Arrays)56 Collections (java.util.Collections)56 Assert.assertTrue (org.junit.Assert.assertTrue)54 HashMap (java.util.HashMap)53 Rule (org.junit.Rule)50 HashSet (java.util.HashSet)44 Set (java.util.Set)42 UUID (java.util.UUID)42 TimeUnit (java.util.concurrent.TimeUnit)41