@Test public void shouldGetDosesForProduct() throws Exception { repository.getDosesForProduct(1L, 2L); verify(mapper).getDoseSettingByProduct(1L, 2L); }
public List<VaccineProductDose> getDosesForProduct(Long programId, Long productId){ return mapper.getDoseSettingByProduct(programId, productId); }
ProductDoseRepository { public List<VaccineProductDose> getDosesForProduct(Long programId, Long productId){ return mapper.getDoseSettingByProduct(programId, productId); } }
ProductDoseRepository { public List<VaccineProductDose> getDosesForProduct(Long programId, Long productId){ return mapper.getDoseSettingByProduct(programId, productId); }  }
ProductDoseRepository { public List<VaccineProductDose> getDosesForProduct(Long programId, Long productId){ return mapper.getDoseSettingByProduct(programId, productId); }  void insert(VaccineProductDose dose); void update(VaccineProductDose dose); List<VaccineProductDose> getDosesForProduct(Long programId, Long productId); List<VaccineDose> getAllDoses(); List<VaccineProductDose> getProgramProductDoses(Long programId); void deleteAllByProgram(Long programId); }
ProductDoseRepository { public List<VaccineProductDose> getDosesForProduct(Long programId, Long productId){ return mapper.getDoseSettingByProduct(programId, productId); }  void insert(VaccineProductDose dose); void update(VaccineProductDose dose); List<VaccineProductDose> getDosesForProduct(Long programId, Long productId); List<VaccineDose> getAllDoses(); List<VaccineProductDose> getProgramProductDoses(Long programId); void deleteAllByProgram(Long programId);  }