Search in sources :

Example 71 with AfterClass

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

the class ResultSetMetaDataTest method tearDownConnection.

@AfterClass
public static void tearDownConnection() throws SQLException {
    final ResultSet util = connection.createStatement().executeQuery("DROP VIEW " + VIEW_NAME + "");
    assertTrue(util.next());
    assertTrue("Error dropping temporary test-columns view " + VIEW_NAME + ": " + util.getString(2), util.getBoolean(1));
    connection.close();
}
Also used : ResultSet(java.sql.ResultSet) AfterClass(org.junit.AfterClass)

Example 72 with AfterClass

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

the class CarbonUtilTest method testcleanUp.

@AfterClass
public static void testcleanUp() {
    new File("../core/src/test/resources/testFile.txt").deleteOnExit();
    new File("../core/src/test/resources/testDatabase/levelmetadata_testTable.metadata").deleteOnExit();
    new File("../core/src/test/resources/testDatabase").delete();
    new File("../core/src/test/resources/newDatabase").deleteOnExit();
}
Also used : File(java.io.File) LocalCarbonFile(org.apache.carbondata.core.datastore.filesystem.LocalCarbonFile) AfterClass(org.junit.AfterClass)

Example 73 with AfterClass

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

the class MetadataTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    integrationUtil.deinit(true);
    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 74 with AfterClass

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

the class OptimizerTest 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();
    }
    HDFSCluster.getInstance().cleanup();
    integrationUtil.deinit(true);
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 75 with AfterClass

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

the class TestInformationSchemaColumns method tearDownConnection.

@AfterClass
public static void tearDownConnection() throws SQLException {
    final ResultSet util = connection.createStatement().executeQuery("DROP VIEW " + VIEW_NAME + "");
    assertTrue(util.next());
    assertTrue("Error dropping temporary test-columns view " + VIEW_NAME + ": " + util.getString(2), util.getBoolean(1));
    connection.close();
}
Also used : ResultSet(java.sql.ResultSet) 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