@Test public void shouldGetAll() { service.getAllDosageUnits(); verify(repository).getAllDosageUnits(); }
public List<DosageUnit> getAllDosageUnits() { return repository.getAllDosageUnits(); }
ProductService { public List<DosageUnit> getAllDosageUnits() { return repository.getAllDosageUnits(); } }
ProductService { public List<DosageUnit> getAllDosageUnits() { return repository.getAllDosageUnits(); }  }
ProductService { public List<DosageUnit> getAllDosageUnits() { return repository.getAllDosageUnits(); }  @Transactional void save(Product product); Long getIdForCode(String code); Product getByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id); }
ProductService { public List<DosageUnit> getAllDosageUnits() { return repository.getAllDosageUnits(); }  @Transactional void save(Product product); Long getIdForCode(String code); Product getByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id);  }