Search in sources :

Example 61 with AfterClass

use of org.junit.AfterClass in project asterixdb by apache.

the class PushRuntimeTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    AlgebricksHyracksIntegrationUtil.deinit();
    File outdir = new File(PATH_ACTUAL);
    File[] files = outdir.listFiles();
    if (files == null || files.length == 0) {
        outdir.delete();
    }
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 62 with AfterClass

use of org.junit.AfterClass in project lucene-solr by apache.

the class TestTolerantUpdateProcessorRandomCloud method afterClass.

@AfterClass
public static void afterClass() throws IOException {
    if (NODE_CLIENTS != null) {
        for (HttpSolrClient client : NODE_CLIENTS) {
            client.close();
        }
    }
    NODE_CLIENTS = null;
    if (CLOUD_CLIENT != null) {
        CLOUD_CLIENT.close();
    }
    CLOUD_CLIENT = null;
}
Also used : HttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient) AfterClass(org.junit.AfterClass)

Example 63 with AfterClass

use of org.junit.AfterClass in project lucene-solr by apache.

the class TestCloudJSONFacetJoinDomain method afterClass.

@AfterClass
private static void afterClass() throws Exception {
    CLOUD_CLIENT.close();
    CLOUD_CLIENT = null;
    for (HttpSolrClient client : CLIENTS) {
        client.close();
    }
    CLIENTS = null;
}
Also used : HttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient) AfterClass(org.junit.AfterClass)

Example 64 with AfterClass

use of org.junit.AfterClass in project lucene-solr by apache.

the class TestRandomFlRTGCloud method afterClass.

@AfterClass
private static void afterClass() throws Exception {
    CLOUD_CLIENT.close();
    CLOUD_CLIENT = null;
    for (HttpSolrClient client : CLIENTS) {
        client.close();
    }
    CLIENTS = null;
}
Also used : HttpSolrClient(org.apache.solr.client.solrj.impl.HttpSolrClient) AfterClass(org.junit.AfterClass)

Example 65 with AfterClass

use of org.junit.AfterClass in project logging-log4j2 by apache.

the class RollingAppenderUncompressedTest method cleanupClass.

@AfterClass
public static void cleanupClass() {
    System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY);
    final LoggerContext ctx = LoggerContext.getContext();
    ctx.reconfigure();
    StatusLogger.getLogger().reset();
}
Also used : LoggerContext(org.apache.logging.log4j.core.LoggerContext) 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