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);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class RestTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
PrivilegeManager pm = PrivilegeManager.getInstance(REALM, adminSubject);
pm.remove(PRIVILEGE_NAME);
IdRepoUtils.deleteIdentity(REALM, user);
}
Aggregations