@Test public void shouldGetByProductId() throws Exception { repository.getByProductId(1L); verify(mapper).getByProductId(1L); }
public List<ProductPriceSchedule> getByProductId(Long id) { return mapper.getByProductId(id); }
ProductPriceScheduleRepository { public List<ProductPriceSchedule> getByProductId(Long id) { return mapper.getByProductId(id); } }
ProductPriceScheduleRepository { public List<ProductPriceSchedule> getByProductId(Long id) { return mapper.getByProductId(id); }  }
ProductPriceScheduleRepository { public List<ProductPriceSchedule> getByProductId(Long id) { return mapper.getByProductId(id); }  void insert(ProductPriceSchedule productPriceSchedule); void update(ProductPriceSchedule productPriceSchedule); ProductPriceSchedule getByProductCodeAndPriceSchedule(ProductPriceSchedule productPriceSchedule); List<ProductPriceSchedule> getByProductId(Long id); List<ProductPriceSchedule> getPriceScheduleFullSupplyFacilityApprovedProduct(Long programId, Long facilityId); }
ProductPriceScheduleRepository { public List<ProductPriceSchedule> getByProductId(Long id) { return mapper.getByProductId(id); }  void insert(ProductPriceSchedule productPriceSchedule); void update(ProductPriceSchedule productPriceSchedule); ProductPriceSchedule getByProductCodeAndPriceSchedule(ProductPriceSchedule productPriceSchedule); List<ProductPriceSchedule> getByProductId(Long id); List<ProductPriceSchedule> getPriceScheduleFullSupplyFacilityApprovedProduct(Long programId, Long facilityId);  }