Search in sources :

Example 61 with AfterClass

use of org.testng.annotations.AfterClass in project teammates by TEAMMATES.

the class InstructorFeedbackQuestionAddActionTest method classTearDown.

@AfterClass
public void classTearDown() {
    // delete entire session to clean the database
    FeedbackSessionAttributes fs = typicalBundle.feedbackSessions.get("session1InCourse1");
    FeedbackSessionsLogic.inst().deleteFeedbackSessionCascade(fs.getFeedbackSessionName(), fs.getCourseId());
}
Also used : FeedbackSessionAttributes(teammates.common.datatransfer.attributes.FeedbackSessionAttributes) AfterClass(org.testng.annotations.AfterClass)

Example 62 with AfterClass

use of org.testng.annotations.AfterClass in project helix by apache.

the class TestCrushAutoRebalance method afterClass.

@AfterClass
public void afterClass() throws Exception {
    /**
     * shutdown order: 1) disconnect the controller 2) disconnect participants
     */
    _controller.syncStop();
    for (MockParticipantManager participant : _participants) {
        participant.syncStop();
    }
    _setupTool.deleteCluster(CLUSTER_NAME);
    System.out.println("END " + CLASS_NAME + " at " + new Date(System.currentTimeMillis()));
}
Also used : MockParticipantManager(org.apache.helix.integration.manager.MockParticipantManager) Date(java.util.Date) AfterClass(org.testng.annotations.AfterClass)

Example 63 with AfterClass

use of org.testng.annotations.AfterClass in project helix by apache.

the class TestDelayedAutoRebalance method afterClass.

@AfterClass
public void afterClass() throws Exception {
    /**
     * shutdown order: 1) disconnect the controller 2) disconnect participants
     */
    _controller.syncStop();
    for (MockParticipantManager participant : _participants) {
        participant.syncStop();
    }
    _setupTool.deleteCluster(CLUSTER_NAME);
    System.out.println("END " + CLASS_NAME + " at " + new Date(System.currentTimeMillis()));
}
Also used : MockParticipantManager(org.apache.helix.integration.manager.MockParticipantManager) Date(java.util.Date) AfterClass(org.testng.annotations.AfterClass)

Example 64 with AfterClass

use of org.testng.annotations.AfterClass in project helix by apache.

the class TestClusterInMaintenanceModeWhenReachingMaxPartition method afterClass.

@AfterClass
public void afterClass() throws Exception {
    /**
     * shutdown order: 1) disconnect the controller 2) disconnect participants
     */
    _controller.syncStop();
    for (MockParticipantManager participant : _participants) {
        if (participant.isConnected()) {
            participant.syncStop();
        }
    }
    _gSetupTool.deleteCluster(CLUSTER_NAME);
    System.out.println("END " + CLASS_NAME + " at " + new Date(System.currentTimeMillis()));
}
Also used : MockParticipantManager(org.apache.helix.integration.manager.MockParticipantManager) Date(java.util.Date) AfterClass(org.testng.annotations.AfterClass)

Example 65 with AfterClass

use of org.testng.annotations.AfterClass in project helix by apache.

the class TestClusterInMaintenanceModeWhenReachingOfflineInstancesLimit method afterClass.

@AfterClass
public void afterClass() throws Exception {
    /**
     * shutdown order: 1) disconnect the controller 2) disconnect participants
     */
    _controller.syncStop();
    for (MockParticipantManager participant : _participants) {
        if (participant.isConnected()) {
            participant.syncStop();
        }
    }
    _gSetupTool.deleteCluster(CLUSTER_NAME);
    System.out.println("END " + CLASS_NAME + " at " + new Date(System.currentTimeMillis()));
}
Also used : MockParticipantManager(org.apache.helix.integration.manager.MockParticipantManager) Date(java.util.Date) 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