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();
}
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);
}
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;
}
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();
}
}
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();
}
}
Aggregations