@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override protected void tearDown() throws Exception { principalProvider.close(); super.tearDown(); }
@Override protected void tearDown() throws Exception { // reset the actions setActions(null); super.tearDown(); }
@Override protected void tearDown() throws Exception { // remove all created groups again for (Authorizable createdGroup : createdGroups) { try { createdGroup.remove(); superuser.save(); } catch (RepositoryException e) { log.error("Failed to remove Group " + createdGroup.getID() + " during tearDown."); } } super.tearDown(); }
@Override public void tearDown() throws Exception { for (Authorizable authorizable : authorizables) { if (!systemDefined.contains(authorizable)) { authorizable.remove(); } } authorizables.clear(); groups.clear(); users.clear(); if (!userMgr.isAutoSave()) { superuser.save(); } super.tearDown(); }
@Override protected void tearDown() throws Exception { // remove all created groups again for (Object createdUser : createdUsers) { Authorizable auth = (Authorizable) createdUser; try { auth.remove(); superuser.save(); } catch (RepositoryException e) { log.warn("Failed to remove User " + auth.getID() + " during tearDown."); } } super.tearDown(); }
@Override protected void tearDown() throws Exception { newUser.remove(); save(superuser); super.tearDown(); }
@Override protected void tearDown() throws Exception { try { userMgr.getAuthorizable(uID).remove(); save(superuser); } finally { uSession.logout(); } super.tearDown(); }
protected void tearDown() throws Exception { try { if (uSession != null) { uSession.logout(); } } finally { Authorizable a = userMgr.getAuthorizable(uID); if (a != null) { a.remove(); save(superuser); } } super.tearDown(); }
@Override protected void tearDown() throws Exception { try { for (NodeImpl node : toRemove) { uMgr.removeProtectedItem(node, (NodeImpl) node.getParent()); save(s); } } finally { s.logout(); } super.tearDown(); }
@Override protected void tearDown() throws Exception { try { uSession.logout(); } finally { Authorizable a = userMgr.getAuthorizable(uID); if (a != null) { a.remove(); } a = userMgr.getAuthorizable(otherUID); if (a != null) { a.remove(); } save(superuser); } super.tearDown(); }
protected void tearDown() throws Exception { try { if (uSession != null) { uSession.logout(); } } finally { // remove group member ship groupAdmin.removeMember(userMgr.getAuthorizable(uID)); // remove all users that have been created Authorizable a = userMgr.getAuthorizable(otherUID); if (a != null) { a.remove(); } save(superuser); } super.tearDown(); }
@Override protected void tearDown() throws Exception { try { if (otherSession != null) { otherSession.logout(); } } finally { Authorizable a = userMgr.getAuthorizable(otherUID); if (a != null) { for (Iterator<Group> it = a.memberOf(); it.hasNext();) { Group gr = it.next(); if (!gr.getPrincipal().equals(EveryonePrincipal.getInstance())) { gr.removeMember(a); } } a.remove(); } a = userMgr.getAuthorizable(uID); if (a != null) { a.remove(); } save(superuser); } super.tearDown(); }