use of org.junit.AfterClass in project hadoop by apache.
the class TestHttpCookieFlag method cleanup.
@AfterClass
public static void cleanup() throws Exception {
server.stop();
FileUtil.fullyDelete(new File(BASEDIR));
KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
clientSslFactory.destroy();
}
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);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestClientRMTokens method tearDown.
@AfterClass
public static void tearDown() {
Configuration conf = new Configuration();
conf.setBoolean(CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP, false);
SecurityUtil.setConfiguration(conf);
}
Aggregations