Search in sources :

Example 46 with AfterClass

use of org.junit.AfterClass in project tdi-studio-se by Talend.

the class UserComponentsProviderTest method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    // backup old
    UserComponentsProviderTestClass provider = new UserComponentsProviderTestClass();
    File installationFolder = provider.getInstallationFolder();
    if (installationFolder != null && installationFolder.exists()) {
        FilesUtils.copyFolder(backupFolder, installationFolder, true, null, null, true);
    }
    FilesUtils.deleteFolder(backupFolder, true);
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 47 with AfterClass

use of org.junit.AfterClass in project textdb by TextDB.

the class ComparableMatcherTest method cleanUp.

@AfterClass
public static void cleanUp() throws TextDBException {
    RelationManager relationManager = RelationManager.getRelationManager();
    relationManager.deleteTable(PEOPLE_TABLE);
}
Also used : RelationManager(edu.uci.ics.textdb.storage.RelationManager) AfterClass(org.junit.AfterClass)

Example 48 with AfterClass

use of org.junit.AfterClass in project SmartCity-Market by TechnionYP5777.

the class PackingTest method cleanup.

@AfterClass
public static void cleanup() {
    if (CLEAN_ALL)
        for (File file : (new File(unpackDirPath)).listFiles()) file.delete();
    else {
        File zipfileToDelete = new File(zipfileToPackPath);
        zipfileToDelete.delete();
    }
}
Also used : ZipFile(java.util.zip.ZipFile) File(java.io.File) AfterClass(org.junit.AfterClass)

Example 49 with AfterClass

use of org.junit.AfterClass in project voltdb by VoltDB.

the class TestJDBCMultiConnection method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    stopServer();
    File f = new File(m_testJar);
    f.delete();
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 50 with AfterClass

use of org.junit.AfterClass in project voltdb by VoltDB.

the class TestJDBCQueries method tearDown.

@AfterClass
public static void tearDown() throws Exception {
    stopServer();
    File f = new File(testjar);
    f.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