use of org.junit.AfterClass in project hadoop by apache.
the class TestFilePool method cleanup.
@AfterClass
public static void cleanup() throws IOException {
final Configuration conf = new Configuration();
final FileSystem fs = FileSystem.getLocal(conf).getRaw();
fs.delete(base, true);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestJobCounters method cleanup.
@AfterClass
public static void cleanup() throws IOException {
//clean up the input and output files
final Configuration conf = new Configuration();
final FileSystem fs = testdir.getFileSystem(conf);
if (fs.exists(testdir)) {
fs.delete(testdir, true);
}
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestMiniMRClientCluster method cleanup.
@AfterClass
public static void cleanup() throws IOException {
// clean up the input and output files
final Configuration conf = new Configuration();
final FileSystem fs = testdir.getFileSystem(conf);
if (fs.exists(testdir)) {
fs.delete(testdir, true);
}
// stopping the mini cluster
mrCluster.stop();
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestAdlSupportedCharsetInPath method testReport.
@AfterClass
public static void testReport() throws IOException, URISyntaxException {
if (!AdlStorageConfiguration.isContractTestEnabled()) {
return;
}
FileSystem fs = AdlStorageConfiguration.createStorageConnector();
fs.delete(new Path(TEST_ROOT), true);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestAHSWebServices method tearDownClass.
@AfterClass
public static void tearDownClass() throws Exception {
if (historyClientService != null) {
historyClientService.stop();
}
fs.delete(new Path(remoteLogRootDir), true);
fs.delete(new Path(rootLogDir), true);
}
Aggregations