@Test public void shouldSaveEpiUseLineItem() throws Exception { EpiUse epiUse = new EpiUse(); EpiUseLineItem epiUseLineItem = new EpiUseLineItem(); epiUse.setLineItems(asList(epiUseLineItem)); service.save(epiUse); verify(epiUseRepository).saveLineItem(epiUseLineItem); }
public void save(EpiUse epiUse) { for (EpiUseLineItem lineItem : epiUse.getLineItems()) { repository.saveLineItem(lineItem); } }
EpiUseService { public void save(EpiUse epiUse) { for (EpiUseLineItem lineItem : epiUse.getLineItems()) { repository.saveLineItem(lineItem); } } }
EpiUseService { public void save(EpiUse epiUse) { for (EpiUseLineItem lineItem : epiUse.getLineItems()) { repository.saveLineItem(lineItem); } }  }
EpiUseService { public void save(EpiUse epiUse) { for (EpiUseLineItem lineItem : epiUse.getLineItems()) { repository.saveLineItem(lineItem); } }  void save(EpiUse epiUse); EpiUse getBy(Long facilityVisitId); }
EpiUseService { public void save(EpiUse epiUse) { for (EpiUseLineItem lineItem : epiUse.getLineItems()) { repository.saveLineItem(lineItem); } }  void save(EpiUse epiUse); EpiUse getBy(Long facilityVisitId);  }