use of org.junit.After in project hadoop by apache.
the class TestAggregatedLogFormat method cleanupTestDir.
@Before
@After
public void cleanupTestDir() throws Exception {
Path workDirPath = new Path(testWorkDir.getAbsolutePath());
LOG.info("Cleaning test directory [" + workDirPath + "]");
fs.delete(workDirPath, true);
}
use of org.junit.After in project hadoop by apache.
the class TestZKClient method tearDown.
@After
public void tearDown() throws IOException, InterruptedException {
if (zks != null) {
ZKDatabase zkDb = zks.getZKDatabase();
factory.shutdown();
try {
zkDb.close();
} catch (IOException ie) {
}
final int PORT = Integer.parseInt(hostPort.split(":")[1]);
Assert.assertTrue("waiting for server down", waitForServerDown("127.0.0.1:" + PORT, CONNECTION_TIMEOUT));
}
}
use of org.junit.After in project hive by apache.
the class TestAddResource method tearDown.
@After
public void tearDown() {
// delete sample jars
for (int i = 1; i <= 5; i++) {
String dataFile = TEST_JAR_DIR + "testjar" + i + ".jar";
File f = new File(dataFile);
if (!f.delete()) {
throw new RuntimeException("Could not delete the data file");
}
}
}
use of org.junit.After in project hadoop by apache.
the class TestNNBench method tearDown.
@After
public void tearDown() throws Exception {
getFileSystem().delete(new Path(BASE_DIR), true);
getFileSystem().delete(new Path(NNBench.DEFAULT_RES_FILE_NAME), true);
super.tearDown();
}
use of org.junit.After in project hadoop by apache.
the class TestRollingLevelDBTimelineStore method tearDown.
@After
public void tearDown() throws Exception {
store.stop();
fsContext.delete(new Path(fsPath.getAbsolutePath()), true);
}
Aggregations