use of org.junit.After in project sonarqube by SonarSource.
the class FileSystemMediumTest method stop.
@After
public void stop() {
tester.stop();
logs = new LogOutputRecorder();
}
use of org.junit.After in project qi4j-sdk by Qi4j.
the class TestApplication method concludeTests.
@After
public void concludeTests() {
UnitOfWork uow = module.currentUnitOfWork();
if (uow != null) {
uow.discard();
}
if (module.isUnitOfWorkActive()) {
while (module.isUnitOfWorkActive()) {
uow = module.currentUnitOfWork();
if (uow.isOpen()) {
System.err.println("UnitOfWork not cleaned up:" + uow.usecase().name());
uow.discard();
} else {
throw new InternalError("I have seen a case where a UoW is on the stack, but not opened. First is: " + uow.usecase().name());
}
}
new Exception("UnitOfWork not properly cleaned up").printStackTrace();
}
}
use of org.junit.After in project neo4j by neo4j.
the class IdGeneratorRebuildFailureEmulationTest method verifyAndDispose.
@After
public void verifyAndDispose() throws Exception {
GraphDatabaseService graphdb = null;
try {
graphdb = new Database(storeDir);
verifyData(graphdb);
} finally {
if (graphdb != null) {
graphdb.shutdown();
}
if (fs != null) {
fs.disposeAndAssertNoOpenFiles();
}
fs = null;
}
}
use of org.junit.After in project druid by druid-io.
the class KafkaIndexTaskTest method tearDown.
@After
public void tearDown() throws Exception {
emitter.close();
synchronized (runningTasks) {
for (Task task : runningTasks) {
task.stopGracefully();
}
runningTasks.clear();
}
taskExec.shutdown();
taskExec.awaitTermination(9999, TimeUnit.DAYS);
kafkaServer.close();
kafkaServer = null;
zkServer.stop();
zkServer = null;
destroyToolboxFactory();
}
use of org.junit.After in project che by eclipse.
the class RenameNonPrivateFieldTest method tearDown.
@After
public void tearDown() throws Exception {
super.tearDown();
setup.tearDown();
Hashtable options = JavaCore.getOptions();
options.put(JavaCore.CODEASSIST_FIELD_PREFIXES, fPrefixPref);
JavaCore.setOptions(options);
}
Aggregations