@Test public void shouldSaveARegimens() { service.save(regimens, 1L); verify(repository).save(regimens, 1L); }
public void save(List<Regimen> regimens, Long userId) { repository.save(regimens, userId); }
RegimenService { public void save(List<Regimen> regimens, Long userId) { repository.save(regimens, userId); } }
RegimenService { public void save(List<Regimen> regimens, Long userId) { repository.save(regimens, userId); }  }
RegimenService { public void save(List<Regimen> regimens, Long userId) { repository.save(regimens, userId); }  void save(List<Regimen> regimens, Long userId); List<Regimen> getByProgram(Long programId); List<RegimenCategory> getAllRegimenCategories(); Regimen getById(Long id); List<DosageFrequency> getAllDosageFrequencies(); List<RegimenProductCombination> getAllRegimenProductCombinations(); List<RegimenCombinationConstituent> getAllRegimenCombinationConstituents(); List<RegimenConstituentDosage> getAllRegimenConstituentDosages(); }
RegimenService { public void save(List<Regimen> regimens, Long userId) { repository.save(regimens, userId); }  void save(List<Regimen> regimens, Long userId); List<Regimen> getByProgram(Long programId); List<RegimenCategory> getAllRegimenCategories(); Regimen getById(Long id); List<DosageFrequency> getAllDosageFrequencies(); List<RegimenProductCombination> getAllRegimenProductCombinations(); List<RegimenCombinationConstituent> getAllRegimenCombinationConstituents(); List<RegimenConstituentDosage> getAllRegimenConstituentDosages();  }