@Test public void shouldGetAciveByFacilityId() throws Exception { Long facilityId = 1L; List<ProgramSupported> programSupported = asList(new ProgramSupported()); when(programSupportedMapper.getActiveProgramsByFacilityId(facilityId)).thenReturn(programSupported); programSupportedRepository.getActiveByFacilityId(facilityId); verify(programSupportedMapper).getActiveProgramsByFacilityId(facilityId); }
public List<ProgramSupported> getActiveByFacilityId(Long facilityId) { return mapper.getActiveProgramsByFacilityId(facilityId); }
ProgramSupportedRepository { public List<ProgramSupported> getActiveByFacilityId(Long facilityId) { return mapper.getActiveProgramsByFacilityId(facilityId); } }
ProgramSupportedRepository { public List<ProgramSupported> getActiveByFacilityId(Long facilityId) { return mapper.getActiveProgramsByFacilityId(facilityId); }  }
ProgramSupportedRepository { public List<ProgramSupported> getActiveByFacilityId(Long facilityId) { return mapper.getActiveProgramsByFacilityId(facilityId); }  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 List<ProgramSupported> getActiveByFacilityId(Long facilityId) { return mapper.getActiveProgramsByFacilityId(facilityId); }  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);  }