@Test public void deleteGroupEPersonMembers() throws SQLException, AuthorizeException, EPersonDeletionException, IOException { EPerson ePerson = null; context.turnOffAuthorisationSystem(); try { Group toDeleteGroup = createGroup("toDelete"); ePerson = createEPerson("deleteGroupEPersonMembers@dspace.org"); groupService.addMember(context, toDeleteGroup, ePerson); groupService.update(context, toDeleteGroup); groupService.delete(context, toDeleteGroup); assertThat("deleteGroupEPersonMembers", ePerson.getGroups().size(), equalTo(0)); } finally { if (ePerson != null) { ePersonService.delete(context, ePerson); } context.restoreAuthSystemState(); } }
void addMember(EPerson e) { getMembers().add(e); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); List<EPerson> getMembers(); List<Group> getMemberGroups(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType(); @Override String getName(); boolean isGroupsChanged(); void clearGroupsChanged(); @Override Integer getLegacyId(); List<WorkspaceItem> getSupervisedItems(); Boolean isPermanent(); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); List<EPerson> getMembers(); List<Group> getMemberGroups(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType(); @Override String getName(); boolean isGroupsChanged(); void clearGroupsChanged(); @Override Integer getLegacyId(); List<WorkspaceItem> getSupervisedItems(); Boolean isPermanent(); @Transient
    static final String ANONYMOUS; @Transient
    static final String ADMIN; }