@Test public void shouldGetFacilityList() throws Exception { List<EstimateFormLineItem> lineItems = asList(make(a(EstimateFormLineItemBuilder.defaultDemographicEstimateLineItem))); when(mapper.getFacilityList(2L, "123")).thenReturn(lineItems); List<EstimateFormLineItem> response = repository.getFacilityList(2L, "123"); assertThat(response, is(lineItems)); verify(mapper).getFacilityList(2L, "123"); }
public List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds) { return mapper.getFacilityList(programId, requsitionGroupIds); }
AnnualFacilityEstimateRepository { public List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds) { return mapper.getFacilityList(programId, requsitionGroupIds); } }
AnnualFacilityEstimateRepository { public List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds) { return mapper.getFacilityList(programId, requsitionGroupIds); }  }
AnnualFacilityEstimateRepository { public List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds) { return mapper.getFacilityList(programId, requsitionGroupIds); }  List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId); List<AnnualFacilityEstimateEntry> getFacilityEstimateWithDetails(Integer year, Long facilityId, Long programId); Integer insert(AnnualFacilityEstimateEntry estimate); Integer update(AnnualFacilityEstimateEntry estimate); AnnualFacilityEstimateEntry getEntryBy(Integer year, Long facilityId, Long programId, Long categoryId); List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds); Integer finalizeEstimate(AnnualFacilityEstimateEntry estimate); Integer undoFinalize(AnnualFacilityEstimateEntry estimate); }
AnnualFacilityEstimateRepository { public List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds) { return mapper.getFacilityList(programId, requsitionGroupIds); }  List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId); List<AnnualFacilityEstimateEntry> getFacilityEstimateWithDetails(Integer year, Long facilityId, Long programId); Integer insert(AnnualFacilityEstimateEntry estimate); Integer update(AnnualFacilityEstimateEntry estimate); AnnualFacilityEstimateEntry getEntryBy(Integer year, Long facilityId, Long programId, Long categoryId); List<EstimateFormLineItem> getFacilityList(Long programId, String requsitionGroupIds); Integer finalizeEstimate(AnnualFacilityEstimateEntry estimate); Integer undoFinalize(AnnualFacilityEstimateEntry estimate);  }