コード例 #1
0
  private List<UserGroup> givenGroups() {
    List<UserGroup> groups = new ArrayList<UserGroup>();
    UserGroup group1 = new UserGroup();
    group1.setName(GROUPNAME_1);
    UserGroup group2 = new UserGroup();
    group2.setName(GROUPNAME_2);
    groups.add(group1);
    groups.add(group2);

    return groups;
  }
コード例 #2
0
  private UserGroup givenGroup() {
    UserGroup group = new UserGroup();
    group.setName(GROUPNAME_1);

    return group;
  }