@Test public void shouldGetReportedPeriodsForFacility() throws Exception{ service.getReportedPeriodsFor(2L, 3L); verify(repository).getReportedPeriodsForFacility(2L, 3L); }
public List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId) { return repository.getReportedPeriodsForFacility(facilityId, programId); }
VaccineReportService { public List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId) { return repository.getReportedPeriodsForFacility(facilityId, programId); } }
VaccineReportService { public List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId) { return repository.getReportedPeriodsForFacility(facilityId, programId); }  }
VaccineReportService { public List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId) { return repository.getReportedPeriodsForFacility(facilityId, programId); }  @Transactional VaccineReport initialize(Long facilityId, Long programId, Long periodId, Long userId); @Transactional void save(VaccineReport report, Long userId); @Transactional void submit(VaccineReport report, Long userId); List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId); List<ReportStatusDTO> getPeriodsFor(Long facilityId, Long programId, Date endDate); VaccineReport getById(Long id); Long getReportIdForFacilityAndPeriod(Long facilityId, Long periodId); List<HashMap<String, Object>> vaccineUsageTrend(String facilityCode, String productCode, Long periodId, Long zoneId); Map<String, Object> getMonthlyVaccineReport(Long facilityId, Long periodId, Long zoneId); }
VaccineReportService { public List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId) { return repository.getReportedPeriodsForFacility(facilityId, programId); }  @Transactional VaccineReport initialize(Long facilityId, Long programId, Long periodId, Long userId); @Transactional void save(VaccineReport report, Long userId); @Transactional void submit(VaccineReport report, Long userId); List<ReportStatusDTO> getReportedPeriodsFor(Long facilityId, Long programId); List<ReportStatusDTO> getPeriodsFor(Long facilityId, Long programId, Date endDate); VaccineReport getById(Long id); Long getReportIdForFacilityAndPeriod(Long facilityId, Long periodId); List<HashMap<String, Object>> vaccineUsageTrend(String facilityCode, String productCode, Long periodId, Long zoneId); Map<String, Object> getMonthlyVaccineReport(Long facilityId, Long periodId, Long zoneId); static final String VACCINE_REPORT_VACCINE_CATEGORY_CODE; static final String VACCINE_REPORT_VITAMINS_CATEGORY_CODE; static final String VACCINE_REPORT_SYRINGES_CATEGORY_CODE; }