Search in sources :

Example 56 with AfterClass

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

the class AbstractExecutionIT method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    File outdir = new File(PATH_ACTUAL);
    File[] files = outdir.listFiles();
    if ((files == null) || (files.length == 0)) {
        outdir.delete();
    }
    AsterixLifecycleIT.tearDown();
    HDFSCluster.getInstance().cleanup();
    if (!badTestCases.isEmpty()) {
        System.out.println("The following test cases left some data");
        for (String testCase : badTestCases) {
            System.out.println(testCase);
        }
    }
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 57 with AfterClass

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

the class NCServiceExecutionIT method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    File outdir = new File(ACTUAL_RESULTS_DIR);
    File[] files = outdir.listFiles();
    if (files == null || files.length == 0) {
        outdir.delete();
    }
    cluster.stop();
    HDFSCluster.getInstance().cleanup();
    if (!badTestCases.isEmpty()) {
        System.out.println("The following test cases left some data");
        for (String testCase : badTestCases) {
            System.out.println(testCase);
        }
    }
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 58 with AfterClass

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

the class OptimizerParserTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    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 59 with AfterClass

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

the class RuntimeParserTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    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 60 with AfterClass

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

the class SmokeParserTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    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)

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