@Test public void shouldUpdate() throws Exception { VaccineReport report = new VaccineReport(); repository.update(report, 2L); verify(mapper).update(report); }
public void update(VaccineReport report, Long userId) { report.setModifiedBy(userId); mapper.update(report); saveDetails(report); }
VaccineReportRepository { public void update(VaccineReport report, Long userId) { report.setModifiedBy(userId); mapper.update(report); saveDetails(report); } }
VaccineReportRepository { public void update(VaccineReport report, Long userId) { report.setModifiedBy(userId); mapper.update(report); saveDetails(report); }  }
VaccineReportRepository { public void update(VaccineReport report, Long userId) { report.setModifiedBy(userId); mapper.update(report); saveDetails(report); }  void insert(VaccineReport report); void saveDetails(VaccineReport report); void update(VaccineReport report, Long userId); VaccineReport getById(Long id); VaccineReport getByIdWithFullDetails(Long id); VaccineReport getByProgramPeriod(Long facilityId, Long programId, Long periodId ); VaccineReport getLastReport(Long facilityId, Long programId); Long getScheduleFor(Long facilityId, Long programId); List<ReportStatusDTO> getReportedPeriodsForFacility(Long facilityId, Long programId); Long getReportIdForFacilityAndPeriod(Long facilityId, Long periodId); List<DiseaseLineItem> getDiseaseSurveillance(Long reportId); List<DiseaseLineItem> getDiseaseSurveillanceAggregateReport(Long periodId, Long zoneId); List<ColdChainLineItem> getColdChain(Long reportId); List<ColdChainLineItem> getColdChainAggregateReport(Long periodId, Long zoneId); List<AdverseEffectLineItem> getAdverseEffectReport(Long reportId); List<AdverseEffectLineItem> getAdverseEffectAggregateReport(Long periodId, Long zoneId); List<HashMap<String, Object>> getVaccineCoverageReport(Long reportId); List<HashMap<String , Object>> getVaccineCoverageAggregateReport(Long periodId, Long zoneId); List<VaccineReport> getImmunizationSession(Long reportId); List<VaccineReport> getImmunizationSessionAggregate(Long periodId, Long zoneId); List<HashMap<String, Object>> getVaccinationReport(String productCategoryCode, Long reportId); List<HashMap<String, Object>> getVaccinationAggregateByGeoZoneReport(String productCategoryCode, Long periodId, Long zoneId); List<HashMap<String, Object>> getTargetPopulation(Long facilityId, Long periodId); List<HashMap<String, Object>> getTargetPopulationAggregateByGeoZone(Long periodId, Long zoneId); List<VitaminSupplementationLineItem> getVitaminSupplementationReport(Long reportId); List<VitaminSupplementationLineItem> getVitaminSupplementationAggregateReport(Long periodId, Long zoneId); List<HashMap<String, Object>> vaccineUsageTrend(String facilityCode, String productCode); List<HashMap<String, Object>> vaccineUsageTrendByGeographicZone(Long periodId, Long zoneId, String productCode); List<HashMap<String, Object>> getAggregateDropOuts(Long periodId, Long zoneId); List<HashMap<String, Object>> getDropOuts(Long reportId); GeographicZone getNationalZone(); Long findLastReportBeforePeriod(Long facilityId, Long programId, Long periodId); }
VaccineReportRepository { public void update(VaccineReport report, Long userId) { report.setModifiedBy(userId); mapper.update(report); saveDetails(report); }  void insert(VaccineReport report); void saveDetails(VaccineReport report); void update(VaccineReport report, Long userId); VaccineReport getById(Long id); VaccineReport getByIdWithFullDetails(Long id); VaccineReport getByProgramPeriod(Long facilityId, Long programId, Long periodId ); VaccineReport getLastReport(Long facilityId, Long programId); Long getScheduleFor(Long facilityId, Long programId); List<ReportStatusDTO> getReportedPeriodsForFacility(Long facilityId, Long programId); Long getReportIdForFacilityAndPeriod(Long facilityId, Long periodId); List<DiseaseLineItem> getDiseaseSurveillance(Long reportId); List<DiseaseLineItem> getDiseaseSurveillanceAggregateReport(Long periodId, Long zoneId); List<ColdChainLineItem> getColdChain(Long reportId); List<ColdChainLineItem> getColdChainAggregateReport(Long periodId, Long zoneId); List<AdverseEffectLineItem> getAdverseEffectReport(Long reportId); List<AdverseEffectLineItem> getAdverseEffectAggregateReport(Long periodId, Long zoneId); List<HashMap<String, Object>> getVaccineCoverageReport(Long reportId); List<HashMap<String , Object>> getVaccineCoverageAggregateReport(Long periodId, Long zoneId); List<VaccineReport> getImmunizationSession(Long reportId); List<VaccineReport> getImmunizationSessionAggregate(Long periodId, Long zoneId); List<HashMap<String, Object>> getVaccinationReport(String productCategoryCode, Long reportId); List<HashMap<String, Object>> getVaccinationAggregateByGeoZoneReport(String productCategoryCode, Long periodId, Long zoneId); List<HashMap<String, Object>> getTargetPopulation(Long facilityId, Long periodId); List<HashMap<String, Object>> getTargetPopulationAggregateByGeoZone(Long periodId, Long zoneId); List<VitaminSupplementationLineItem> getVitaminSupplementationReport(Long reportId); List<VitaminSupplementationLineItem> getVitaminSupplementationAggregateReport(Long periodId, Long zoneId); List<HashMap<String, Object>> vaccineUsageTrend(String facilityCode, String productCode); List<HashMap<String, Object>> vaccineUsageTrendByGeographicZone(Long periodId, Long zoneId, String productCode); List<HashMap<String, Object>> getAggregateDropOuts(Long periodId, Long zoneId); List<HashMap<String, Object>> getDropOuts(Long reportId); GeographicZone getNationalZone(); Long findLastReportBeforePeriod(Long facilityId, Long programId, Long periodId);  }