Search in sources :

Example 81 with AfterClass

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

the class HiveOrcSerDeManagerTest method tearDown.

@AfterClass
public void tearDown() throws IOException {
    FileSystem fs = FileSystem.getLocal(new Configuration());
    fs.delete(this.testBasePath, true);
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) FileSystem(org.apache.hadoop.fs.FileSystem) AfterClass(org.testng.annotations.AfterClass)

Example 82 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 83 with AfterClass

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

the class HiveAvroSerDeManagerTest method tearDown.

@AfterClass
public void tearDown() throws IOException {
    FileSystem fs = FileSystem.getLocal(new Configuration());
    fs.delete(this.testBasePath, true);
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) FileSystem(org.apache.hadoop.fs.FileSystem) AfterClass(org.testng.annotations.AfterClass)

Example 84 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 85 with AfterClass

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

the class DatePartitionedAvroFileExtractorTest method tearDown.

@AfterClass
public void tearDown() throws IOException {
    this.writer.close();
    FileUtils.deleteDirectory(new File(TEST_ROOT_DIR));
}
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