コード例 #1
0
  public static UserDepartment createUserDepartment(int departmentId) {
    UserDepartment department = new UserDepartment(departmentId);
    department.setCode("aa");
    department.setName("bb");

    department.setUsers(Sets.newHashSet(UserObjectMother.createUsers(department)));
    return department;
  }
コード例 #2
0
 public static Volunteer anyValidVolunteer() {
   return new Volunteer().setUser(UserObjectMother.anyValidUser());
 }