use of org.testng.annotations.AfterMethod in project JGroups by belaban.
the class MergeTest2 method tearDown.
@AfterMethod
void tearDown() throws Exception {
for (JChannel ch : new JChannel[] { a, b, c, d }) {
ProtocolStack stack = ch.getProtocolStack();
String cluster_name = ch.getClusterName();
GMS gms = stack.findProtocol(GMS.class);
if (gms != null)
gms.setLevel("warn");
stack.stopStack(cluster_name);
stack.destroy();
}
}
use of org.testng.annotations.AfterMethod in project Payara by payara.
the class ElementStarTest method after.
@AfterMethod
public void after() {
// TODO: This url should be fixed
Response response = delete("/domain/servers/server/" + instanceName1 + "/delete-instance");
checkStatusForSuccess(response);
response = delete("/domain/servers/server/" + instanceName2 + "/delete-instance");
checkStatusForSuccess(response);
}
use of org.testng.annotations.AfterMethod in project athenz by yahoo.
the class InstanceProviderManagerTest method shutdown.
@AfterMethod
public void shutdown() {
ZTSTestUtils.deleteDirectory(new File(ZTS_DATA_STORE_PATH));
System.clearProperty(ZTSConsts.ZTS_PROP_PROVIDER_ENDPOINTS);
}
use of org.testng.annotations.AfterMethod in project functional-tests by NativeScript.
the class SdkBaseTest method afterSdkBaseTestMethod.
@AfterMethod(alwaysRun = true)
public void afterSdkBaseTestMethod(ITestResult result) {
if (result.getStatus() == ITestResult.SKIP) {
result.setStatus(ITestResult.FAILURE);
this.log.info("Set test result from SKIP to FAILURE.");
}
try {
UIElement btnBack = this.mainPage.btnBack();
if (btnBack != null) {
this.mainPage.navigateBack(btnBack);
} else {
this.mainPage.navigateBack();
}
} catch (Exception ex) {
this.log.error(ex.getMessage());
result.setStatus(ITestResult.FAILURE);
}
}
Aggregations