@Test public void shouldGetAllDosageUnits() { repository.getAllDosageUnits(); verify(dosageUnitMapper).getAll(); }
public List<DosageUnit> getAllDosageUnits() { return dosageUnitMapper.getAll(); }
ProductRepository { public List<DosageUnit> getAllDosageUnits() { return dosageUnitMapper.getAll(); } }
ProductRepository { public List<DosageUnit> getAllDosageUnits() { return dosageUnitMapper.getAll(); }  }
ProductRepository { public List<DosageUnit> getAllDosageUnits() { return dosageUnitMapper.getAll(); }  void insert(Product product); void update(Product product); Long getIdByCode(String code); Product getByCode(String code); DosageUnit getDosageUnitByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id); }
ProductRepository { public List<DosageUnit> getAllDosageUnits() { return dosageUnitMapper.getAll(); }  void insert(Product product); void update(Product product); Long getIdByCode(String code); Product getByCode(String code); DosageUnit getDosageUnitByCode(String code); boolean isActive(String code); Integer getTotalSearchResultCount(String searchParam); List<DosageUnit> getAllDosageUnits(); Product getById(Long id);  }