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();
}
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();
}
}
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();
}
}
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");
}
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();
}
}
Aggregations