use of org.junit.After in project voltdb by VoltDB.
the class TestCSVLoader method tearDown.
@After
public void tearDown() throws IOException, ProcCallException {
final ClientResponse response = client.callProcedure("@AdHoc", "TRUNCATE TABLE BLAH;");
assertEquals(ClientResponse.SUCCESS, response.getStatus());
}
use of org.junit.After in project EnrichmentMapApp by BaderLab.
the class LegacySessionLoadTest method resetManager.
@After
public void resetManager() {
// Don't save the model on shutdown, we want to do that in a test
EnrichmentMapManager emManager = injector.getInstance(EnrichmentMapManager.class);
emManager.reset();
}
use of org.junit.After in project intellij-community by JetBrains.
the class SvnTestCase method imitUpdate.
protected static void imitUpdate(final Project project) {
ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).setValue(false);
final CommonUpdateProjectAction action = new CommonUpdateProjectAction();
action.getTemplatePresentation().setText("1");
action.actionPerformed(new AnActionEvent(null, dataId -> {
if (CommonDataKeys.PROJECT.is(dataId)) {
return project;
}
return null;
}, "test", new Presentation(), ActionManager.getInstance(), 0));
final ChangeListManager clManager = ChangeListManager.getInstance(project);
clManager.ensureUpToDate(false);
// wait for after-events like annotations recalculation
clManager.ensureUpToDate(false);
// zipper updater
sleep(100);
}
use of org.junit.After in project opennms by OpenNMS.
the class JmxDatacollectionConfiggeneratorTest method tearDown.
@After
public void tearDown() throws Exception {
jmxConfiggenerator = null;
platformMBeanServer.unregisterMBean(new ObjectName("org.opennms.tools.jmxconfiggenerator.jmxconfig:type=JmxTest"));
platformMBeanServer = null;
}
use of org.junit.After in project alluxio by Alluxio.
the class HdfsFileInputStreamIntegrationTest method after.
@After
public final void after() throws IOException, AlluxioException {
mInMemInputStream.close();
mFileSystem.delete(new AlluxioURI(IN_MEMORY_FILE));
if (mUfsInputStream != null) {
mUfsInputStream.close();
mFileSystem.delete(new AlluxioURI(UFS_ONLY_FILE));
}
ClientTestUtils.resetClient();
}
Aggregations