Search in sources :

Example 51 with AfterMethod

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);
    }
}
Also used : GenerateType(org.restcomm.smpp.GenerateType) SmscPropertiesManagement(org.mobicents.smsc.domain.SmscPropertiesManagement) AfterMethod(org.testng.annotations.AfterMethod)

Example 52 with AfterMethod

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();
}
Also used : File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 53 with AfterMethod

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();
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) RandomAccessFile(java.io.RandomAccessFile) File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 54 with AfterMethod

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.");
}
Also used : Date(java.util.Date) AfterMethod(org.testng.annotations.AfterMethod)

Example 55 with AfterMethod

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);
}
Also used : MockParticipantManager(org.apache.helix.integration.manager.MockParticipantManager) AfterMethod(org.testng.annotations.AfterMethod)

Aggregations

AfterMethod (org.testng.annotations.AfterMethod)74 File (java.io.File)16 MifosPage (org.mifos.test.acceptance.framework.MifosPage)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 ProtocolStack (org.jgroups.stack.ProtocolStack)6 IOException (java.io.IOException)5 HashSet (java.util.HashSet)4 AtlasVertex (org.apache.atlas.repository.graphdb.AtlasVertex)4 Connection (java.sql.Connection)3 SQLException (java.sql.SQLException)3 MockParticipantManager (org.apache.helix.integration.manager.MockParticipantManager)3 JdbcSession (com.evolveum.midpoint.repo.sqlbase.JdbcSession)2 DispatchManager (com.facebook.presto.dispatcher.DispatchManager)2 OServerAdmin (com.orientechnologies.orient.client.remote.OServerAdmin)2 OStorageProxy (com.orientechnologies.orient.core.storage.OStorageProxy)2 RandomAccessFile (java.io.RandomAccessFile)2 Date (java.util.Date)2 ExecutorService (java.util.concurrent.ExecutorService)2 DeleteIndexRequest (org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest)2 Parameters (org.testng.annotations.Parameters)2