@Test public void shouldGetFacilityEstimate() throws Exception { when(mapper.getEstimatesForFacility(2005, 2L, 2L)).thenReturn(asList(new AnnualFacilityEstimateEntry())); List<?> result = repository.getFacilityEstimate(2005, 2L, 2L); assertThat(result.size(), is(1)); verify(mapper).getEstimatesForFacility(2005, 2L, 2L); }
public List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId) { return mapper.getEstimatesForFacility(year, facilityId, programId); }
AnnualFacilityEstimateRepository { public List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId) { return mapper.getEstimatesForFacility(year, facilityId, programId); } }
AnnualFacilityEstimateRepository { public List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId) { return mapper.getEstimatesForFacility(year, facilityId, programId); }  }
AnnualFacilityEstimateRepository { public List<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId) { return mapper.getEstimatesForFacility(year, facilityId, programId); }  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<AnnualFacilityEstimateEntry> getFacilityEstimate(Integer year, Long facilityId, Long programId) { return mapper.getEstimatesForFacility(year, facilityId, programId); }  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);  }