@Test public void findAllNameSort() throws SQLException { List<Group> groups = groupService.findAll(context, null); assertThat("findAllNameSort 1", groups, notNullValue()); List<String> names = new ArrayList<>(); List<String> sortedNames = new ArrayList<>(); for (Group group : groups) { if (group.getName() == null) { continue; } names.add(group.getName()); sortedNames.add(group.getName()); } Collections.sort(sortedNames); assertThat("findAllNameSort compareLists", names, equalTo(sortedNames)); }
@Override public String getName() { return name; }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public String getName() { return name; } }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public String getName() { return name; } protected  Group(); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { @Override public String getName() { return name; } 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 { @Override public String getName() { return name; } 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; }