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();
}
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();
}
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();
}
}
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);
}
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();
}
Aggregations