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());
}
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();
}
}
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);
}
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);
}
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();
}
Aggregations