Example #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
  public void tearDown() throws Exception {

    for (ExoSocialActivity activity : tearDownActivityList) {
      activityManager.deleteActivity(activity);
    }

    for (Space space : tearDownSpaceList) {
      spaceService.deleteSpace(space);
    }

    for (Identity identity : tearDownIdentityList) {
      identityManager.deleteIdentity(identity);
    }

    super.tearDown();
  }
Example #3
0
  @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();
  }