@Test public void shouldGetProgramStartDate() throws Exception { ProgramSupported programSupported = make(a(defaultProgramSupported)); when(programSupportedMapper.getBy(1L, 2L)).thenReturn(programSupported); assertThat(programSupportedRepository.getProgramStartDate(1L, 2L), is(programSupported.getStartDate())); }
public Date getProgramStartDate(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId).getStartDate(); }
ProgramSupportedRepository { public Date getProgramStartDate(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId).getStartDate(); } }
ProgramSupportedRepository { public Date getProgramStartDate(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId).getStartDate(); }  }
ProgramSupportedRepository { public Date getProgramStartDate(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId).getStartDate(); }  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 Date getProgramStartDate(Long facilityId, Long programId) { return mapper.getBy(facilityId, programId).getStartDate(); }  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);  }