use of org.testng.annotations.AfterClass in project rest.li by linkedin.
the class TestCompressionEcho method tearDown.
@AfterClass
public void tearDown() throws Exception {
for (Client client : _clients) {
final FutureCallback<None> clientShutdownCallback = new FutureCallback<None>();
client.shutdown(clientShutdownCallback);
clientShutdownCallback.get();
}
for (TransportClientFactory factory : _clientFactories) {
final FutureCallback<None> factoryShutdownCallback = new FutureCallback<None>();
factory.shutdown(factoryShutdownCallback);
factoryShutdownCallback.get();
}
if (_server != null) {
_server.stop();
_server.waitForStop();
}
_executor.shutdown();
}
use of org.testng.annotations.AfterClass in project pulsar by yahoo.
the class CallbackMutexTest method teardown.
@AfterClass
public void teardown() {
Logger log = Logger.getLogger(CallbackMutex.class);
log.setLevel(Level.OFF);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class PolicyIndexTest method cleanup.
@AfterClass
public void cleanup() throws SSOException, PolicyException {
SSOToken adminToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
PolicyManager pm = new PolicyManager(adminToken, "/");
pm.removePolicy(POLICY_NAME);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class TestAttributeEvaluator method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (!migrated) {
return;
}
PrivilegeManager pm = new PolicyPrivilegeManager(applicationServiceFactory, resourceTypeService, constraintValidator);
pm.initialize("/", SubjectUtils.createSubject(adminToken));
pm.remove(PRIVILEGE1_NAME);
IdRepoUtils.deleteIdentity("/", user1);
ApplicationManager.deleteApplication(adminSubject, "/", APPL_NAME);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class TestEvaluator method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (!migrated) {
return;
}
PrivilegeManager pm = PrivilegeManager.getInstance(SUB_REALM, adminSubject);
pm.remove(PRIVILEGE1_NAME);
Set<AMIdentity> identities = new HashSet<AMIdentity>();
identities.add(user1);
identities.add(user2);
IdRepoUtils.deleteIdentities("/", identities);
ApplicationManager.deleteApplication(adminSubject, "/", APPL_NAME);
OrganizationConfigManager orgMgr = new OrganizationConfigManager(adminToken, "/");
orgMgr.deleteSubOrganization(SUB_REALM, true);
}
Aggregations