use of org.testng.annotations.AfterMethod in project elasticsearch-skywalker by jprante.
the class AbstractNodeTest method deleteIndices.
@AfterMethod
public void deleteIndices() {
try {
// clear test index
client("1").admin().indices().delete(new DeleteIndexRequest().indices(INDEX)).actionGet();
} catch (IndexMissingException e) {
// ignore
}
closeNode("1");
closeAllNodes();
}
use of org.testng.annotations.AfterMethod in project otter by alibaba.
the class ExecIntegration method tearDown.
@AfterMethod
public void tearDown() {
String tmp = System.getProperty("java.io.tmpdir", "/tmp");
new File(tmp + "/exec.log").deleteOnExit();
}
use of org.testng.annotations.AfterMethod in project JGroups by belaban.
the class ClusterSplitLockTest method tearDown.
@AfterMethod
protected void tearDown() throws Exception {
Util.closeReverse(channels);
Stream.of(execs).forEach(ExecutorService::shutdown);
for (ExecutorService ex : execs) assertTrue(ex.awaitTermination(5, SECONDS));
}
use of org.testng.annotations.AfterMethod in project JGroups by belaban.
the class RSVPTest 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 MessageDispatcherRSVPTest 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();
}
}
Aggregations