use of org.junit.AfterClass in project hadoop by apache.
the class TestAMAuthorization method resetConf.
@AfterClass
public static void resetConf() {
Configuration conf = new Configuration();
conf.setBoolean(CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP, false);
SecurityUtil.setConfiguration(conf);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestMRCredentials method tearDown.
@AfterClass
public static void tearDown() throws Exception {
if (mrCluster != null)
mrCluster.stop();
mrCluster = null;
if (dfsCluster != null)
dfsCluster.shutdown();
dfsCluster = null;
new File("keys.json").delete();
}
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 hbase by apache.
the class TestAccessController3 method tearDownAfterClass.
@AfterClass
public static void tearDownAfterClass() throws Exception {
HRegionServer rs = null;
for (JVMClusterUtil.RegionServerThread thread : TEST_UTIL.getMiniHBaseCluster().getRegionServerThreads()) {
rs = thread.getRegionServer();
}
cleanUp();
TEST_UTIL.shutdownMiniCluster();
assertTrue("region server should have aborted due to FaultyAccessController", rs.isAborted());
}
Aggregations