Search in sources :

Example 56 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 57 with AfterClass

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

the class TopologyCatalogTest 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 58 with AfterClass

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

the class CopyIntegrationTest method cleanup.

@AfterClass
@BeforeClass
public void cleanup() throws Exception {
    FileSystem fs = FileSystem.getLocal(new Configuration());
    fs.delete(new Path("gobblin-test-harness/testOutput"), true);
}
Also used : Path(org.apache.hadoop.fs.Path) Configuration(org.apache.hadoop.conf.Configuration) FileSystem(org.apache.hadoop.fs.FileSystem) BeforeClass(org.testng.annotations.BeforeClass) AfterClass(org.testng.annotations.AfterClass)

Example 59 with AfterClass

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

the class Kafka08DataWriterIntegrationTest method cleanup.

@AfterClass
@BeforeClass
public void cleanup() throws Exception {
    File file = new File("gobblin-kafka/testOutput");
    FileUtils.deleteDirectory(file);
}
Also used : File(java.io.File) BeforeClass(org.testng.annotations.BeforeClass) AfterClass(org.testng.annotations.AfterClass)

Example 60 with AfterClass

use of org.testng.annotations.AfterClass in project midpoint by Evolveum.

the class AbstractModelIntegrationTest method cleanUpSecurity.

@AfterClass
protected void cleanUpSecurity() {
    SecurityContext securityContext = SecurityContextHolder.getContext();
    securityContext.setAuthentication(null);
}
Also used : SecurityContext(org.springframework.security.core.context.SecurityContext) AfterClass(org.testng.annotations.AfterClass)

Aggregations

AfterClass (org.testng.annotations.AfterClass)78 File (java.io.File)19 OrganizationConfigManager (com.sun.identity.sm.OrganizationConfigManager)9 HashSet (java.util.HashSet)9 AMIdentity (com.sun.identity.idm.AMIdentity)8 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 Path (org.apache.hadoop.fs.Path)4 PolicyPrivilegeManager (com.sun.identity.entitlement.opensso.PolicyPrivilegeManager)3 Configuration (org.apache.hadoop.conf.Configuration)3 FileSystem (org.apache.hadoop.fs.FileSystem)3 SSOException (com.iplanet.sso.SSOException)2 TransportClientFactory (com.linkedin.r2.transport.common.TransportClientFactory)2