use of org.testng.annotations.AfterMethod in project smscgateway by RestComm.
the class DeliveryCommonSbbTest method tearDownClass.
@AfterMethod
public void tearDownClass() throws Exception {
System.out.println("tearDownClass");
SmscPropertiesManagement smscPropertiesManagement = SmscPropertiesManagement.getInstance();
if (smscPropertiesManagement != null) {
smscPropertiesManagement.setGenerateArchiveTable(new GenerateType(7));
smscPropertiesManagement.setGenerateCdr(new GenerateType(7));
smscPropertiesManagement.setVpProlong(120);
}
}
use of org.testng.annotations.AfterMethod in project rubix by qubole.
the class TestRemoteReadRequestChain method cleanup.
@AfterMethod
public void cleanup() throws IOException {
fsDataInputStream.close();
backendFile.delete();
File localFile = new File(localFileName);
localFile.delete();
}
use of org.testng.annotations.AfterMethod in project rubix by qubole.
the class TestCachingInputStream method cleanup.
@AfterMethod
public void cleanup() {
BookKeeperServer.stopServer();
LocalDataTransferServer.stopServer();
Configuration conf = new Configuration();
conf.set(CacheConfig.dataCacheDirprefixesConf, testDirectoryPrefix + "dir");
inputStream.close();
File file = new File(backendFileName);
file.delete();
File mdFile = new File(CacheConfig.getMDFile(backendPath.toString(), conf));
mdFile.delete();
File localFile = new File(CacheConfig.getLocalPath(backendPath.toString(), conf));
localFile.delete();
}
use of org.testng.annotations.AfterMethod in project helix by apache.
the class BaseStageTest method endTest.
@AfterMethod
public void endTest(Method testMethod, ITestContext testContext) {
Long startTime = (Long) testContext.getAttribute("StartTime");
long endTime = System.currentTimeMillis();
System.out.println("END " + testMethod.getName() + " at " + new Date(endTime) + ", took: " + (endTime - startTime) + "ms.");
}
use of org.testng.annotations.AfterMethod in project helix by apache.
the class TestClusterStateVerifier method afterMethod.
@AfterMethod
public void afterMethod() {
// Cleanup
_controller.syncStop();
for (MockParticipantManager participant : _participants) {
participant.syncStop();
}
_admin.dropCluster(_clusterName);
}
Aggregations