use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class IDPPTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (!migrated) {
return;
}
PolicyManager policyMgr = new PolicyManager(adminToken, orgName);
policyMgr.removePolicy("IDPPTestPolicy1");
Set<AMIdentity> identities = new HashSet<AMIdentity>();
identities.add(user1);
identities.add(group1);
IdRepoUtils.deleteIdentities(orgName, identities);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class CanBeDeletedAppTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (!migrated) {
return;
}
OrganizationConfigManager ocm = new OrganizationConfigManager(adminToken, "/");
String subRealm = SUB_REALM.substring(1);
ocm.deleteSubOrganization(subRealm, true);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class OrgAliasReferralTestOldAPI method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (orgAliasEnabled) {
OrganizationConfigManager ocm = new OrganizationConfigManager(adminToken, "/");
ocm.deleteSubOrganization(SUB_REALM1.substring(1), true);
}
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class RealmRemovedTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
if (!migrated) {
return;
}
OrganizationConfigManager ocm = new OrganizationConfigManager(adminToken, "/");
String subRealm = SUB_REALM2.substring(1);
ocm.deleteSubOrganization(subRealm, true);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class RestPermissionTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
PrivilegeManager pm = PrivilegeManager.getInstance("/", adminSubject);
pm.remove(PRIVILEGE_NAME);
IdRepoUtils.deleteIdentity(REALM, group);
IdRepoUtils.deleteIdentity(REALM, user);
}
Aggregations