Search in sources :

Example 86 with AfterClass

use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.

the class FlowCatalogTest method cleanUp.

@AfterClass
public void cleanUp() throws Exception {
    // Shutdown Catalog
    this.serviceLauncher.stop();
    File specStoreDir = new File(SPEC_STORE_DIR);
    if (specStoreDir.exists()) {
        FileUtils.deleteDirectory(specStoreDir);
    }
}
Also used : File(java.io.File) AfterClass(org.testng.annotations.AfterClass)

Example 87 with AfterClass

use of org.testng.annotations.AfterClass in project rubix by qubole.

the class TestCachingInputStream method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    BookKeeperFactory.resetConnectionPool();
    log.info("Deleting files in " + testDirectory);
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Example 88 with AfterClass

use of org.testng.annotations.AfterClass in project rubix by qubole.

the class TestNonLocalReadRequestChain method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    log.info("Deleting files in " + testDirectory);
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Example 89 with AfterClass

use of org.testng.annotations.AfterClass in project rubix by qubole.

the class TestGenerationNumber method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Example 90 with AfterClass

use of org.testng.annotations.AfterClass in project openj9 by eclipse.

the class TestOpenJ9DiagnosticsMXBean method tearDown.

@AfterClass
public void tearDown() throws Exception {
    try {
        connector.close();
        lock.notifyEvent("closed JMX connection");
    } catch (Throwable t) {
        t.printStackTrace();
        Assert.fail("Failed to close JMX connection");
    }
    stopRemoteServer();
    /* Cleanup the dump directories */
    String[] dirs = { "local", "local_dumps", "remote", "remote_dumps" };
    for (String directory : dirs) {
        File fdir = new File("." + File.separator + directory);
        File[] files = fdir.listFiles();
        for (File file : files) {
            file.delete();
        }
        fdir.delete();
    }
    /* Cleanup the temp file */
    File file = new File(tmpFileName);
    boolean ret = file.delete();
    Assert.assertTrue(ret, "Deleting " + tmpFileName + " Failed!");
}
Also used : File(java.io.File) AfterClass(org.testng.annotations.AfterClass)

Aggregations

AfterClass (org.testng.annotations.AfterClass)90 File (java.io.File)23 OrganizationConfigManager (com.sun.identity.sm.OrganizationConfigManager)9 HashSet (java.util.HashSet)9 AMIdentity (com.sun.identity.idm.AMIdentity)8 Configuration (org.apache.hadoop.conf.Configuration)7 FileSystem (org.apache.hadoop.fs.FileSystem)7 Path (org.apache.hadoop.fs.Path)7 SSOToken (com.iplanet.sso.SSOToken)6 PrivilegeManager (com.sun.identity.entitlement.PrivilegeManager)6 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)6 AMIdentityRepository (com.sun.identity.idm.AMIdentityRepository)5 Date (java.util.Date)5 FutureCallback (com.linkedin.common.callback.FutureCallback)4 None (com.linkedin.common.util.None)4 Client (com.linkedin.r2.transport.common.Client)4 MockServer (com.sequenceiq.it.cloudbreak.v2.mock.MockServer)4 DeleteFileVisitor (com.qubole.rubix.common.utils.DeleteFileVisitor)3 PolicyPrivilegeManager (com.sun.identity.entitlement.opensso.PolicyPrivilegeManager)3 SSOException (com.iplanet.sso.SSOException)2