Search in sources :

Example 36 with AfterMethod

use of org.testng.annotations.AfterMethod in project rest.li by linkedin.

the class TestRestLiCallback method resetMocks.

@AfterMethod
protected void resetMocks() throws Exception {
    reset(_filter, _filterRequestContext, _restRequest, _routingResult, _responseHandler, _callback);
    when(_routingResult.getContext()).thenReturn(new ResourceContextImpl());
}
Also used : ResourceContextImpl(com.linkedin.restli.internal.server.ResourceContextImpl) AfterMethod(org.testng.annotations.AfterMethod)

Example 37 with AfterMethod

use of org.testng.annotations.AfterMethod in project JGroups by belaban.

the class LargeMergeTest 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();
    }
}
Also used : ProtocolStack(org.jgroups.stack.ProtocolStack) AfterMethod(org.testng.annotations.AfterMethod)

Example 38 with AfterMethod

use of org.testng.annotations.AfterMethod in project JGroups by belaban.

the class DiscardTest method tearDown.

@AfterMethod
protected void tearDown() throws Exception {
    TP tp_a = a.getProtocolStack().getTransport(), tp_b = b.getProtocolStack().getTransport();
    if (tp_a instanceof TCP_NIO2) {
        System.out.printf("partial writes in A: %d, partial writes in B: %d\n", ((TCP_NIO2) tp_a).numPartialWrites(), ((TCP_NIO2) tp_b).numPartialWrites());
    }
    Util.close(b, a);
}
Also used : TCP_NIO2(org.jgroups.protocols.TCP_NIO2) TP(org.jgroups.protocols.TP) AfterMethod(org.testng.annotations.AfterMethod)

Example 39 with AfterMethod

use of org.testng.annotations.AfterMethod in project athenz by yahoo.

the class ZTSImplTest method shutdown.

@AfterMethod
public void shutdown() {
    cloudStore.close();
    ZTSTestUtils.deleteDirectory(new File(ZTS_DATA_STORE_PATH));
    System.clearProperty(ZTSConsts.ZTS_PROP_ROLE_TOKEN_MAX_TIMEOUT);
    System.clearProperty(ZTSConsts.ZTS_PROP_ROLE_TOKEN_DEFAULT_TIMEOUT);
}
Also used : File(java.io.File) AfterMethod(org.testng.annotations.AfterMethod)

Example 40 with AfterMethod

use of org.testng.annotations.AfterMethod in project che by eclipse.

the class ProjectResolverTest method tearDown.

@AfterMethod
public void tearDown() throws Exception {
    File localRepository = new File("target/localrepo");
    localRepository.mkdirs();
}
Also used : File(java.io.File) 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