@Test public void shouldReturnProgramSupportedByProgramAndFacilityId() throws Exception { programSupportedRepository.getByFacilityIdAndProgramId(1L, 1L); when(programSupportedMapper.getBy(anyLong(), anyLong())).thenReturn(new ProgramSupported()); verify(programSupportedMapper).getBy(1L, 1L); }
public ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId); }
ProgramSupportedRepository { public ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId); } }
ProgramSupportedRepository { public ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId); }  }
ProgramSupportedRepository { public ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId); }  Date getProgramStartDate(Long facilityId, Long programId); void deleteSupportedPrograms(Long facilityId, Long programId); void addSupportedProgram(ProgramSupported programSupported); boolean updateSupportedPrograms(Facility facility); List<ProgramSupported> getAllByFacilityId(Long facilityId); ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId); void updateSupportedProgram(ProgramSupported programSupported); List<ProgramSupported> getActiveByFacilityId(Long facilityId); void updateForVirtualFacilities(Facility parentFacility); }
ProgramSupportedRepository { public ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId); }  Date getProgramStartDate(Long facilityId, Long programId); void deleteSupportedPrograms(Long facilityId, Long programId); void addSupportedProgram(ProgramSupported programSupported); boolean updateSupportedPrograms(Facility facility); List<ProgramSupported> getAllByFacilityId(Long facilityId); ProgramSupported getByFacilityIdAndProgramId(Long facilityId, Long programId); void updateSupportedProgram(ProgramSupported programSupported); List<ProgramSupported> getActiveByFacilityId(Long facilityId); void updateForVirtualFacilities(Facility parentFacility);  }