@Test public void shouldReturnStockOutFacilitiesByRequisitionGroup() throws Exception { when(mapper.getStockOutFacilitiesForGeographicZone(1L, 1L, 1L, 1L, 1L)).thenReturn(null); assertThat(lookupService.getStockOutFacilitiesByGeographicZoneFilter(1L, 1L, 1L, 1L, 1L), is(nullValue())); verify(mapper).getStockOutFacilitiesForGeographicZone(1L, 1L, 1L, 1L, 1L); }
public List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId){ return dashboardMapper.getStockOutFacilitiesForGeographicZone(userId, periodId, programId, productId, requisitionGroupId); }
DashboardLookupService { public List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId){ return dashboardMapper.getStockOutFacilitiesForGeographicZone(userId, periodId, programId, productId, requisitionGroupId); } }
DashboardLookupService { public List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId){ return dashboardMapper.getStockOutFacilitiesForGeographicZone(userId, periodId, programId, productId, requisitionGroupId); }  }
DashboardLookupService { public List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId){ return dashboardMapper.getStockOutFacilitiesForGeographicZone(userId, periodId, programId, productId, requisitionGroupId); }  static String getCommaSeparatedIds(List<Long> idList); List<ItemFillRate> getItemFillRate(Long periodId, Long facilityId, Long programId,List<Long> productListId); OrderFillRate getOrderFillRate(Long periodId, Long facilityId, Long programId); List<ShipmentLeadTime> getShipmentLeadTime(Long userId,Long periodId, Long programId, Long zoneId); List<StockingInfo> getStockEfficiencyData(Long userId,Long periodId, Long programId, Long zoneId, List<Long> productListId); List<StockingInfo> getStockEfficiencyDetailData(Long userId,Long periodId, Long programId, Long zoneId, List<Long> productListId); List<StockOut> getStockOutFacilities(Long userId, Long periodId, Long programId, Long productId, Long zoneId); List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId); List<AlertSummary> getAlerts(Long userId, Long programId, Long periodId, Long zoneId); List<AlertSummary> getStockedOutAlerts(Long userId, Long programId, Long periodId, Long zoneId); List<AlertSummary> getNotificationAlerts(); List<HashMap> getNotificationsByCategory(Long userId, Long programId, Long periodId, Long zoneId,String detailTable); List<HashMap> getStockedOutNotificationDetails(Long userId, Long programId, Long periodId, Long zoneId, Long productId,String detailTable); void sendNotification(Notification notification); String getYearOfPeriodById(Long id); List<RnRStatusSummaryReport> getRnRStatusSummary(Long requisionGroupId); ReportingStatus getReportingPerformance(Long userId,Long periodId, Long programId,  Long zoneId); List<ReportingPerformance> getReportingPerformanceDetail(Long userId,Long periodId, Long programId, Long zoneId, String status); List<RnRStatusSummaryReport> getRnRStatusDetails(Long requisitionGroupId,Long programId,Long periodId); List<RnRStatusSummaryReport> getRnRStatusSummary(Long userId, Long zoneId, Long periodId, Long programId); List<RnRStatusSummaryReport> getEmergencyRnRStatusSummary(Long userId, Long zoneId, Long periodId, Long programId); List<RnRStatusSummaryReport> getRnRStatusByRequisitionGroupAndPeriodData(Long requisitionGroupId,Long periodId); List<RnRStatusSummaryReport> getRnRStatusDetail(Long userId, Long periodId, Long programId,  Long zoneId, String status); List<RnRStatusSummaryReport> getExtraAnalyticsDataForRnRSummary(Long userId, Long zoneId,Long periodId, Long programId); DashboardLookUpReportHeader getProductNameById(Long id,long periodId); List<HashMap<String, Object>> getProgramPeriodTracerProductsTrend(Long programId, Long periodId, Long userId, Long limit); HashMap<String, Object> getDashboardReportingPerformance(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getDistrictStockSummary(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getFacilityStockSummary(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getFacilitiesStockedOut(Long programId, Long periodId, String productCode); }
DashboardLookupService { public List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId){ return dashboardMapper.getStockOutFacilitiesForGeographicZone(userId, periodId, programId, productId, requisitionGroupId); }  static String getCommaSeparatedIds(List<Long> idList); List<ItemFillRate> getItemFillRate(Long periodId, Long facilityId, Long programId,List<Long> productListId); OrderFillRate getOrderFillRate(Long periodId, Long facilityId, Long programId); List<ShipmentLeadTime> getShipmentLeadTime(Long userId,Long periodId, Long programId, Long zoneId); List<StockingInfo> getStockEfficiencyData(Long userId,Long periodId, Long programId, Long zoneId, List<Long> productListId); List<StockingInfo> getStockEfficiencyDetailData(Long userId,Long periodId, Long programId, Long zoneId, List<Long> productListId); List<StockOut> getStockOutFacilities(Long userId, Long periodId, Long programId, Long productId, Long zoneId); List<StockOut> getStockOutFacilitiesByGeographicZoneFilter(Long userId, Long periodId, Long programId, Long productId, Long requisitionGroupId); List<AlertSummary> getAlerts(Long userId, Long programId, Long periodId, Long zoneId); List<AlertSummary> getStockedOutAlerts(Long userId, Long programId, Long periodId, Long zoneId); List<AlertSummary> getNotificationAlerts(); List<HashMap> getNotificationsByCategory(Long userId, Long programId, Long periodId, Long zoneId,String detailTable); List<HashMap> getStockedOutNotificationDetails(Long userId, Long programId, Long periodId, Long zoneId, Long productId,String detailTable); void sendNotification(Notification notification); String getYearOfPeriodById(Long id); List<RnRStatusSummaryReport> getRnRStatusSummary(Long requisionGroupId); ReportingStatus getReportingPerformance(Long userId,Long periodId, Long programId,  Long zoneId); List<ReportingPerformance> getReportingPerformanceDetail(Long userId,Long periodId, Long programId, Long zoneId, String status); List<RnRStatusSummaryReport> getRnRStatusDetails(Long requisitionGroupId,Long programId,Long periodId); List<RnRStatusSummaryReport> getRnRStatusSummary(Long userId, Long zoneId, Long periodId, Long programId); List<RnRStatusSummaryReport> getEmergencyRnRStatusSummary(Long userId, Long zoneId, Long periodId, Long programId); List<RnRStatusSummaryReport> getRnRStatusByRequisitionGroupAndPeriodData(Long requisitionGroupId,Long periodId); List<RnRStatusSummaryReport> getRnRStatusDetail(Long userId, Long periodId, Long programId,  Long zoneId, String status); List<RnRStatusSummaryReport> getExtraAnalyticsDataForRnRSummary(Long userId, Long zoneId,Long periodId, Long programId); DashboardLookUpReportHeader getProductNameById(Long id,long periodId); List<HashMap<String, Object>> getProgramPeriodTracerProductsTrend(Long programId, Long periodId, Long userId, Long limit); HashMap<String, Object> getDashboardReportingPerformance(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getDistrictStockSummary(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getFacilityStockSummary(Long programId, Long periodId, Long userId); List<HashMap<String, Object>> getFacilitiesStockedOut(Long programId, Long periodId, String productCode);  }