Search in sources :

Example 36 with AfterClass

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);
    }
}
Also used : FileOutputStream(java.io.FileOutputStream) File(java.io.File) AfterClass(org.junit.AfterClass)

Example 37 with AfterClass

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();
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 38 with AfterClass

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);
}
Also used : Path(org.apache.hadoop.fs.Path) AfterClass(org.junit.AfterClass)

Example 39 with AfterClass

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);
}
Also used : Path(org.apache.hadoop.fs.Path) AfterClass(org.junit.AfterClass)

Example 40 with AfterClass

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);
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Aggregations

AfterClass (org.junit.AfterClass)231 File (java.io.File)83 DalHints (com.ctrip.platform.dal.dao.DalHints)25 FileSystem (org.apache.hadoop.fs.FileSystem)14 Path (org.apache.hadoop.fs.Path)14 HashMap (java.util.HashMap)12 IOException (java.io.IOException)11 StatementParameters (com.ctrip.platform.dal.dao.StatementParameters)9 ModelNode (org.jboss.dmr.ModelNode)8 Statement (java.sql.Statement)7 ScenarioConfiguration (org.apache.hadoop.mapred.nativetask.testutil.ScenarioConfiguration)7 FileOutputStream (java.io.FileOutputStream)6 RelationManager (edu.uci.ics.textdb.storage.RelationManager)5 ClientException (edu.umass.cs.gnscommon.exceptions.client.ClientException)5 Configuration (org.apache.hadoop.conf.Configuration)5 HttpSolrClient (org.apache.solr.client.solrj.impl.HttpSolrClient)5 RelationManager (edu.uci.ics.texera.storage.RelationManager)4 Method (java.lang.reflect.Method)4 SQLException (java.sql.SQLException)4 LoggerContext (org.apache.logging.log4j.core.LoggerContext)4