Search in sources :

Example 71 with AfterClass

use of org.testng.annotations.AfterClass in project cloudbreak by hortonworks.

the class MockClusterScalingTest method breakDown.

@AfterClass
public void breakDown() {
    ScalingMock scalingMock = getItContext().getContextParam(CloudbreakV2Constants.MOCK_SERVER, ScalingMock.class);
    scalingMock.stop();
}
Also used : ScalingMock(com.sequenceiq.it.cloudbreak.v2.mock.ScalingMock) AfterClass(org.testng.annotations.AfterClass)

Example 72 with AfterClass

use of org.testng.annotations.AfterClass in project cloudbreak by hortonworks.

the class MockInstanceTerminationReplicationErrorTest method breakDown.

@AfterClass
public void breakDown() {
    MockServer instanceTerminationMock = getItContext().getContextParam(CloudbreakV2Constants.MOCK_SERVER, InstanceTerminationReplicationErrorMock.class);
    instanceTerminationMock.stop();
}
Also used : MockServer(com.sequenceiq.it.cloudbreak.v2.mock.MockServer) AfterClass(org.testng.annotations.AfterClass)

Example 73 with AfterClass

use of org.testng.annotations.AfterClass in project cloudbreak by hortonworks.

the class MockInstanceTerminationTest method breakDown.

@AfterClass
public void breakDown() {
    MockServer instanceTerminationMock = getItContext().getContextParam(CloudbreakV2Constants.MOCK_SERVER, InstanceTerminationMock.class);
    instanceTerminationMock.stop();
}
Also used : MockServer(com.sequenceiq.it.cloudbreak.v2.mock.MockServer) AfterClass(org.testng.annotations.AfterClass)

Example 74 with AfterClass

use of org.testng.annotations.AfterClass in project shifu by ShifuML.

the class ConfusionMatrixTest method tearDown.

@AfterClass
public void tearDown() throws IOException {
    File dir = new File("test");
    FileUtils.deleteDirectory(dir);
    FileUtils.deleteDirectory(new File("./models"));
}
Also used : File(java.io.File) AfterClass(org.testng.annotations.AfterClass)

Example 75 with AfterClass

use of org.testng.annotations.AfterClass in project shifu by ShifuML.

the class SVMTrainerTest method shutDown.

@AfterClass
public void shutDown() throws IOException {
    FileUtils.deleteDirectory(new File("./models/"));
    FileUtils.deleteDirectory(new File("./modelsTmp/"));
    Encog.getInstance().shutdown();
}
Also used : File(java.io.File) 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