@Test public void shouldSaveFulfillmentRolesForUser() throws Exception { List<FulfillmentRoleAssignment> fulfillmentRoleAssignments = asList(new FulfillmentRoleAssignment()); User user = new User(); user.setFulfillmentRoles(fulfillmentRoleAssignments); fulfillmentRoleService.saveFulfillmentRoles(user); verify(fulfillmentRoleAssignmentRepository).insertFulfillmentRoles(user); }
public void saveFulfillmentRoles(User user) { fulfillmentRoleAssignmentRepository.insertFulfillmentRoles(user); }
FulfillmentRoleService { public void saveFulfillmentRoles(User user) { fulfillmentRoleAssignmentRepository.insertFulfillmentRoles(user); } }
FulfillmentRoleService { public void saveFulfillmentRoles(User user) { fulfillmentRoleAssignmentRepository.insertFulfillmentRoles(user); }  }
FulfillmentRoleService { public void saveFulfillmentRoles(User user) { fulfillmentRoleAssignmentRepository.insertFulfillmentRoles(user); }  List<FulfillmentRoleAssignment> getRolesForUser(Long userId); void saveFulfillmentRoles(User user); List<FulfillmentRoleAssignment> getRolesWithRight(Long userId, String rightName); }
FulfillmentRoleService { public void saveFulfillmentRoles(User user) { fulfillmentRoleAssignmentRepository.insertFulfillmentRoles(user); }  List<FulfillmentRoleAssignment> getRolesForUser(Long userId); void saveFulfillmentRoles(User user); List<FulfillmentRoleAssignment> getRolesWithRight(Long userId, String rightName);  }