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; }
public static Volunteer anyValidVolunteer() { return new Volunteer().setUser(UserObjectMother.anyValidUser()); }