use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.
the class FlowCatalogTest method cleanUp.
@AfterClass
public void cleanUp() throws Exception {
// Shutdown Catalog
this.serviceLauncher.stop();
File specStoreDir = new File(SPEC_STORE_DIR);
if (specStoreDir.exists()) {
FileUtils.deleteDirectory(specStoreDir);
}
}
use of org.testng.annotations.AfterClass in project rubix by qubole.
the class TestCachingInputStream method tearDownClass.
@AfterClass
public static void tearDownClass() throws IOException {
BookKeeperFactory.resetConnectionPool();
log.info("Deleting files in " + testDirectory);
Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
Files.deleteIfExists(Paths.get(testDirectory));
}
use of org.testng.annotations.AfterClass in project rubix by qubole.
the class TestNonLocalReadRequestChain method tearDownClass.
@AfterClass
public static void tearDownClass() throws IOException {
log.info("Deleting files in " + testDirectory);
Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
Files.deleteIfExists(Paths.get(testDirectory));
}
use of org.testng.annotations.AfterClass in project rubix by qubole.
the class TestGenerationNumber method tearDownClass.
@AfterClass
public static void tearDownClass() throws IOException {
Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
Files.deleteIfExists(Paths.get(testDirectory));
}
use of org.testng.annotations.AfterClass in project openj9 by eclipse.
the class TestOpenJ9DiagnosticsMXBean method tearDown.
@AfterClass
public void tearDown() throws Exception {
try {
connector.close();
lock.notifyEvent("closed JMX connection");
} catch (Throwable t) {
t.printStackTrace();
Assert.fail("Failed to close JMX connection");
}
stopRemoteServer();
/* Cleanup the dump directories */
String[] dirs = { "local", "local_dumps", "remote", "remote_dumps" };
for (String directory : dirs) {
File fdir = new File("." + File.separator + directory);
File[] files = fdir.listFiles();
for (File file : files) {
file.delete();
}
fdir.delete();
}
/* Cleanup the temp file */
File file = new File(tmpFileName);
boolean ret = file.delete();
Assert.assertTrue(ret, "Deleting " + tmpFileName + " Failed!");
}
Aggregations