@Test public void shouldUpdateProgramSupported() throws Exception { ProgramSupported programSupported = new ProgramSupported(); doNothing().when(programSupportedMapper).update(programSupported); programSupportedRepository.updateSupportedProgram(programSupported); verify(programSupportedMapper).update(programSupported); }
public void updateSupportedProgram(ProgramSupported programSupported) { mapper.update(programSupported); }
ProgramSupportedRepository { public void updateSupportedProgram(ProgramSupported programSupported) { mapper.update(programSupported); } }
ProgramSupportedRepository { public void updateSupportedProgram(ProgramSupported programSupported) { mapper.update(programSupported); }  }
ProgramSupportedRepository { public void updateSupportedProgram(ProgramSupported programSupported) { mapper.update(programSupported); }  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 void updateSupportedProgram(ProgramSupported programSupported) { mapper.update(programSupported); }  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);  }