Beispiel #1
0
 public void tearDown() throws Exception {
   for (Identity identity : tearDownIdentityList) {
     identityManager.deleteIdentity(identity);
   }
   for (Space space : tearDownSpaceList) {
     Identity spaceIdentity =
         identityManager.getOrCreateIdentity(
             SpaceIdentityProvider.NAME, space.getPrettyName(), false);
     if (spaceIdentity != null) {
       identityManager.deleteIdentity(spaceIdentity);
     }
     spaceService.deleteSpace(space);
   }
   super.tearDown();
 }
  @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();
  }