@Test public void shouldDeleteAllRoleAssignmentsForTheUser() throws Exception { repository.deleteAllRoleAssignmentsForUser(1L); verify(mapper).deleteAllRoleAssignmentsForUser(1L); }
public void deleteAllRoleAssignmentsForUser(Long id) { mapper.deleteAllRoleAssignmentsForUser(id); }
RoleAssignmentRepository { public void deleteAllRoleAssignmentsForUser(Long id) { mapper.deleteAllRoleAssignmentsForUser(id); } }
RoleAssignmentRepository { public void deleteAllRoleAssignmentsForUser(Long id) { mapper.deleteAllRoleAssignmentsForUser(id); } @Autowired  RoleAssignmentRepository(RoleAssignmentMapper roleAssignmentMapper); }
RoleAssignmentRepository { public void deleteAllRoleAssignmentsForUser(Long id) { mapper.deleteAllRoleAssignmentsForUser(id); } @Autowired  RoleAssignmentRepository(RoleAssignmentMapper roleAssignmentMapper); List<RoleAssignment> getRoleAssignmentsForUserWithRight(String rightName, Long userId); void deleteAllRoleAssignmentsForUser(Long id); List<RoleAssignment> getSupervisorRoles(Long userId); List<RoleAssignment> getHomeFacilityRoles(Long userId); List<RoleAssignment> getHomeFacilityRolesForUserOnGivenProgramWithRights(Long userId, Long programId, String... rightNames); RoleAssignment getAdminRole(Long userId); RoleAssignment getReportRole(Long userId); void insert(List<RoleAssignment> roleAssignments, final Long userId); List<RoleAssignment> getAllocationRoles(Long userId); RoleAssignment getReportingRole(Long userId); }
RoleAssignmentRepository { public void deleteAllRoleAssignmentsForUser(Long id) { mapper.deleteAllRoleAssignmentsForUser(id); } @Autowired  RoleAssignmentRepository(RoleAssignmentMapper roleAssignmentMapper); List<RoleAssignment> getRoleAssignmentsForUserWithRight(String rightName, Long userId); void deleteAllRoleAssignmentsForUser(Long id); List<RoleAssignment> getSupervisorRoles(Long userId); List<RoleAssignment> getHomeFacilityRoles(Long userId); List<RoleAssignment> getHomeFacilityRolesForUserOnGivenProgramWithRights(Long userId, Long programId, String... rightNames); RoleAssignment getAdminRole(Long userId); RoleAssignment getReportRole(Long userId); void insert(List<RoleAssignment> roleAssignments, final Long userId); List<RoleAssignment> getAllocationRoles(Long userId); RoleAssignment getReportingRole(Long userId);  }