Search in sources :

Example 6 with AfterMethod

use of org.testng.annotations.AfterMethod in project atmosphere by Atmosphere.

the class ExcludeSessionBroadcasterTest method unSetUp.

@AfterMethod
public void unSetUp() throws Exception {
    broadcaster.removeAtmosphereResource(ar);
    atmosphereHandler.value.set(new HashSet());
    config.getBroadcasterFactory().destroy();
}
Also used : HashSet(java.util.HashSet) AfterMethod(org.testng.annotations.AfterMethod)

Example 7 with AfterMethod

use of org.testng.annotations.AfterMethod in project atmosphere by Atmosphere.

the class BroadcasterTest method unSetUp.

@AfterMethod
public void unSetUp() throws Exception {
    broadcaster.destroy();
    atmosphereHandler.value.set(new HashSet());
    config.getBroadcasterFactory().destroy();
    ExecutorsFactory.reset(config);
}
Also used : HashSet(java.util.HashSet) AfterMethod(org.testng.annotations.AfterMethod)

Example 8 with AfterMethod

use of org.testng.annotations.AfterMethod in project gephi by gephi.

the class StandardTest method cleanUp.

@AfterMethod
public void cleanUp() {
    ProjectController projectController = Lookup.getDefault().lookup(ProjectController.class);
    projectController.closeCurrentProject();
    workspace = null;
    graphModel = null;
}
Also used : ProjectController(org.gephi.project.api.ProjectController) AfterMethod(org.testng.annotations.AfterMethod)

Example 9 with AfterMethod

use of org.testng.annotations.AfterMethod in project JGroups by belaban.

the class FORWARD_TO_COORD_Test method tearDown.

@AfterMethod
void tearDown() throws Exception {
    for (int i = NUM - 1; i >= 0; i--) {
        ProtocolStack stack = channels[i].getProtocolStack();
        String cluster_name = channels[i].getClusterName();
        stack.stopStack(cluster_name);
        stack.destroy();
    }
}
Also used : ProtocolStack(org.jgroups.stack.ProtocolStack) AfterMethod(org.testng.annotations.AfterMethod)

Example 10 with AfterMethod

use of org.testng.annotations.AfterMethod in project JGroups by belaban.

the class MergeTest3 method tearDown.

@AfterMethod
void tearDown() throws Exception {
    for (JChannel ch : new JChannel[] { a, b, c, d, e, f }) {
        ProtocolStack stack = ch.getProtocolStack();
        String cluster_name = ch.getClusterName();
        stack.stopStack(cluster_name);
        stack.destroy();
    }
}
Also used : ProtocolStack(org.jgroups.stack.ProtocolStack) AfterMethod(org.testng.annotations.AfterMethod)

Aggregations

AfterMethod (org.testng.annotations.AfterMethod)74 File (java.io.File)16 MifosPage (org.mifos.test.acceptance.framework.MifosPage)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 ProtocolStack (org.jgroups.stack.ProtocolStack)6 IOException (java.io.IOException)5 HashSet (java.util.HashSet)4 AtlasVertex (org.apache.atlas.repository.graphdb.AtlasVertex)4 Connection (java.sql.Connection)3 SQLException (java.sql.SQLException)3 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)3 JdbcSession (com.evolveum.midpoint.repo.sqlbase.JdbcSession)2 DispatchManager (com.facebook.presto.dispatcher.DispatchManager)2 OServerAdmin (com.orientechnologies.orient.client.remote.OServerAdmin)2 OStorageProxy (com.orientechnologies.orient.core.storage.OStorageProxy)2 RandomAccessFile (java.io.RandomAccessFile)2 Date (java.util.Date)2 ExecutorService (java.util.concurrent.ExecutorService)2 DeleteIndexRequest (org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest)2 Parameters (org.testng.annotations.Parameters)2