Search in sources :

Example 96 with After

use of org.junit.After in project geode by apache.

the class CompiledJunctionInternalsJUnitTest method tearDown.

@After
public void tearDown() throws Exception {
    CacheUtils.closeCache();
    IndexManager indexManager = ((LocalRegion) region).getIndexManager();
    if (indexManager != null)
        indexManager.destroy();
}
Also used : IndexManager(org.apache.geode.cache.query.internal.index.IndexManager) LocalRegion(org.apache.geode.internal.cache.LocalRegion) After(org.junit.After)

Example 97 with After

use of org.junit.After in project wildfly by wildfly.

the class VaultToolTestCase method tearDown.

@After
public void tearDown() throws Exception {
    // or save and restore original
    System.setSecurityManager(null);
    cleanDirectory(ENC_FILE_DIR_VALUE);
    File keyStoreFile = new File(KEYSTORE_URL_VALUE);
    if (keyStoreFile.exists()) {
        keyStoreFile.delete();
    }
}
Also used : File(java.io.File) After(org.junit.After)

Example 98 with After

use of org.junit.After in project sling by apache.

the class LargeTopologyWithHubTest method tearDown.

@After
public void tearDown() throws Exception {
    for (Iterator<VirtualInstance> it = instances.iterator(); it.hasNext(); ) {
        final VirtualInstance instance = it.next();
        instance.stop();
    }
}
Also used : VirtualInstance(org.apache.sling.discovery.base.its.setup.VirtualInstance) After(org.junit.After)

Example 99 with After

use of org.junit.After in project sling by apache.

the class DiscoveryWithSyncTokenTest method tearDown.

@After
public void tearDown() throws Exception {
    logger.info("teardown: start");
    for (VirtualInstance virtualInstance : instances) {
        virtualInstance.stop();
    }
    logger.info("teardown: end");
}
Also used : VirtualInstance(org.apache.sling.discovery.base.its.setup.VirtualInstance) After(org.junit.After)

Example 100 with After

use of org.junit.After in project sling by apache.

the class HeartbeatTest method tearDown.

@After
public void tearDown() throws Exception {
    final org.apache.log4j.Logger discoveryLogger = RootLogger.getLogger("org.apache.sling.discovery");
    discoveryLogger.setLevel(logLevel);
    Iterator<VirtualInstance> it = instances.iterator();
    while (it.hasNext()) {
        VirtualInstance i = it.next();
        i.stop();
    }
}
Also used : VirtualInstance(org.apache.sling.discovery.base.its.setup.VirtualInstance) FullJR2VirtualInstance(org.apache.sling.discovery.impl.setup.FullJR2VirtualInstance) After(org.junit.After)

Aggregations

After (org.junit.After)1427 File (java.io.File)284 Before (org.junit.Before)137 Test (org.junit.Test)127 List (java.util.List)87 IOException (java.io.IOException)83 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