@Test public void shouldUpdateFacilityApprovedProductIfExists() throws Exception { FacilityTypeApprovedProduct facilityTypeApprovedProduct = new FacilityTypeApprovedProduct(); repository.update(facilityTypeApprovedProduct); verify(mapper).update(facilityTypeApprovedProduct); }
public void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct) { mapper.update(facilityTypeApprovedProduct); }
FacilityApprovedProductRepository { public void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct) { mapper.update(facilityTypeApprovedProduct); } }
FacilityApprovedProductRepository { public void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct) { mapper.update(facilityTypeApprovedProduct); }  }
FacilityApprovedProductRepository { public void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct) { mapper.update(facilityTypeApprovedProduct); }  List<FacilityTypeApprovedProduct> getFullSupplyProductsByFacilityAndProgram(Long facilityId, Long programId); List<FacilityTypeApprovedProduct> getNonFullSupplyProductsByFacilityAndProgram(Long facilityId, Long programId); void insert(FacilityTypeApprovedProduct facilityTypeApprovedProduct); void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct); FacilityTypeApprovedProduct getFacilityApprovedProductByProgramProductAndFacilityTypeCode(
    FacilityTypeApprovedProduct facilityTypeApprovedProduct); List<FacilityTypeApprovedProduct> getAllBy(Long facilityTypeId, Long programId, String searchParam, Pagination pagination); List<FacilityTypeApprovedProduct> getAllByFacilityAndProgramId( Long facilityId, Long programId); Integer getTotalSearchResultCount(Long facilityTypeId, Long programId, String searchParam); void delete(Long id); FacilityTypeApprovedProduct get(Long id); }
FacilityApprovedProductRepository { public void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct) { mapper.update(facilityTypeApprovedProduct); }  List<FacilityTypeApprovedProduct> getFullSupplyProductsByFacilityAndProgram(Long facilityId, Long programId); List<FacilityTypeApprovedProduct> getNonFullSupplyProductsByFacilityAndProgram(Long facilityId, Long programId); void insert(FacilityTypeApprovedProduct facilityTypeApprovedProduct); void update(FacilityTypeApprovedProduct facilityTypeApprovedProduct); FacilityTypeApprovedProduct getFacilityApprovedProductByProgramProductAndFacilityTypeCode(
    FacilityTypeApprovedProduct facilityTypeApprovedProduct); List<FacilityTypeApprovedProduct> getAllBy(Long facilityTypeId, Long programId, String searchParam, Pagination pagination); List<FacilityTypeApprovedProduct> getAllByFacilityAndProgramId( Long facilityId, Long programId); Integer getTotalSearchResultCount(Long facilityTypeId, Long programId, String searchParam); void delete(Long id); FacilityTypeApprovedProduct get(Long id);  }