use of org.testng.annotations.AfterTest in project airavata by apache.
the class AiravataIT method cleanUp.
@AfterTest(alwaysRun = true)
private void cleanUp() {
logger.info("cleanUp() -> Launching test experiment......");
Process p;
try {
String result = null;
p = Runtime.getRuntime().exec("base-airavata/apache-airavata-server-0.17-SNAPSHOT/bin/airavata-server-stop.sh -f");
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
while ((result = br.readLine()) != null) System.out.println("line: " + result);
p.waitFor();
System.out.println("exit: " + p.exitValue());
p.destroy();
} catch (Exception e) {
logger.error("Error occured while cleanup", e);
Assert.fail();
}
}
use of org.testng.annotations.AfterTest in project cloudbreak by hortonworks.
the class FilesystemTest method cleanUpFilesystem.
@AfterTest
public void cleanUpFilesystem() throws Exception {
IntegrationTestContext itContext = getItContext();
Map<String, String> cloudProviderParams = itContext.getContextParam(CloudbreakITContextConstants.CLOUDPROVIDER_PARAMETERS, Map.class);
FilesystemUtil.cleanUpFiles(applicationContext, cloudProviderParams, fsParams.get("filesystemType"), fsParams.get("filesystemName"), fsParams.get("folderPrefix"), fsParams.get("wasbContainerName"));
}
use of org.testng.annotations.AfterTest in project rest.li by linkedin.
the class TestRestLiD2Integration method teardown.
@AfterTest
public void teardown() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
_loadBalancer.shutdown(new PropertyEventThread.PropertyEventShutdownCallback() {
@Override
public void done() {
latch.countDown();
}
});
latch.await();
}
use of org.testng.annotations.AfterTest in project openj9 by eclipse.
the class TestJmap method preserveHelloWorld.
@AfterTest
private void preserveHelloWorld() {
/* force the objects to stay alive */
for (HelloWorld instance : hws) {
log(instance.getClass().getName());
}
log(Integer.toString(objectArray.hashCode()));
log(Integer.toString(objectVector.hashCode()));
log(Integer.toString(primitiveArray.hashCode()));
log(Integer.toString(primitiveVector.hashCode()));
}
Aggregations