use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class IOTest method cleanup.
@AfterClass
public void cleanup() {
File f = new File(FILENAME);
f.delete();
f = new File(JSON_FILENAME);
f.delete();
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class ListenerRestTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
PrivilegeManager pm = PrivilegeManager.getInstance(REALM, adminSubject);
pm.remove(PRIVILEGE_NAME);
IdRepoUtils.deleteIdentity(REALM, agent);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class MetaDataTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
SSOToken adminToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
deleteUser(adminToken);
PolicyManager pm = new PolicyManager(adminToken, "/");
pm.removePolicy(POLICY_NAME);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class OpenProvisioning method cleanup.
@AfterClass
public void cleanup() throws SSOException, IdRepoException, EntitlementException {
SSOToken adminToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
AMIdentityRepository amir = new AMIdentityRepository(adminToken, "/");
Set<AMIdentity> identities = new HashSet<AMIdentity>();
identities.add(jSmith);
identities.add(johnDoe);
identities.add(branchMgr);
amir.deleteIdentities(identities);
PrivilegeManager pMgr = new PolicyPrivilegeManager(applicationServiceFactory, resourceTypeService, constraintValidator);
pMgr.initialize("/", SubjectUtils.createSubject(adminToken));
pMgr.remove(PRIVILEGE_NAME);
}
use of org.testng.annotations.AfterClass in project OpenAM by OpenRock.
the class UserPrivilegeTest method cleanup.
@AfterClass
public void cleanup() throws Exception {
Set identities = new HashSet();
identities.add(user);
amir.deleteIdentities(identities);
}
Aggregations