use of org.junit.AfterClass in project camel by apache.
the class BaseMinaTest method savePort.
@AfterClass
public static void savePort() throws Exception {
File file = new File("target/minaport.txt");
// save to file, do not append
FileOutputStream fos = new FileOutputStream(file, false);
try {
fos.write(String.valueOf(port).getBytes());
} finally {
IOHelper.close(fos);
}
}
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 TestViewFsDefaultValue method cleanup.
@AfterClass
public static void cleanup() throws IOException {
fHdfs.delete(new Path(testFileName), true);
fHdfs.delete(notInMountpointPath, true);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestViewFsFileStatusHdfs method cleanup.
@AfterClass
public static void cleanup() throws IOException {
fHdfs.delete(new Path(testfilename), true);
fHdfs.delete(new Path(someFile), true);
fHdfs.delete(new Path(someFile + "other"), true);
}
use of org.junit.AfterClass in project hadoop by apache.
the class TestHttpFSFWithSWebhdfsFileSystem method cleanUp.
@AfterClass
public static void cleanUp() throws Exception {
new File(classpathDir, "ssl-client.xml").delete();
new File(classpathDir, "ssl-server.xml").delete();
KeyStoreTestUtil.cleanupSSLConfig(keyStoreDir, classpathDir);
}
Aggregations