@Override protected void tearDown() throws Exception { for (ExoSocialActivity activity : tearDownActivityList) { activityStorage.deleteActivity(activity.getId()); } for (Relationship relationship : tearDownRelationshipList) { relationshipManager.delete(relationship); } identityStorage.deleteIdentity(rootIdentity); identityStorage.deleteIdentity(johnIdentity); identityStorage.deleteIdentity(maryIdentity); identityStorage.deleteIdentity(demoIdentity); super.tearDown(); }
@Override public void tearDown() throws Exception { // for (String space : spaces) { spaceService.deleteSpace(spaceService.getSpaceByPrettyName(SpaceUtils.cleanString(space))); Identity i = identityStorage.findIdentity(SpaceIdentityProvider.NAME, space.toLowerCase()); identityStorage.deleteIdentity(i); } // for (String user : users) { organizationService.getUserHandler().removeUser(user, false); Identity i = identityStorage.findIdentity(OrganizationIdentityProvider.NAME, user); identityStorage.deleteIdentity(i); } // end(); }