@Test public void shouldInsert() throws Exception { AnnualFacilityEstimateEntry estimate = make(a(AnnualFacilityEstimateBuilder.defaultAnnualFacilityEstimateEntry)); when(mapper.insert(estimate)).thenReturn(1); repository.insert(estimate); verify(mapper).insert(estimate); }
public Integer insert(AnnualFacilityEstimateEntry estimate){ return mapper.insert(estimate); }
AnnualFacilityEstimateRepository { public Integer insert(AnnualFacilityEstimateEntry estimate){ return mapper.insert(estimate); } }
AnnualFacilityEstimateRepository { public Integer insert(AnnualFacilityEstimateEntry estimate){ return mapper.insert(estimate); }  }
AnnualFacilityEstimateRepository { public Integer insert(AnnualFacilityEstimateEntry estimate){ return mapper.insert(estimate); }  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 Integer insert(AnnualFacilityEstimateEntry estimate){ return mapper.insert(estimate); }  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);  }