@Test public void shouldCallSaveAndSetRegimenTemplateConfigured() throws Exception { Long programId = 1L; RegimenTemplate regimenTemplate = new RegimenTemplate(programId, new ArrayList<RegimenColumn>()); service.save(regimenTemplate, userId); verify(repository).save(regimenTemplate, userId); verify(programService).setRegimenTemplateConfigured(programId); }
public void save(RegimenTemplate regimenTemplate, Long userId) { repository.save(regimenTemplate, userId); programService.setRegimenTemplateConfigured(regimenTemplate.getProgramId()); }
RegimenColumnService { public void save(RegimenTemplate regimenTemplate, Long userId) { repository.save(regimenTemplate, userId); programService.setRegimenTemplateConfigured(regimenTemplate.getProgramId()); } }
RegimenColumnService { public void save(RegimenTemplate regimenTemplate, Long userId) { repository.save(regimenTemplate, userId); programService.setRegimenTemplateConfigured(regimenTemplate.getProgramId()); }  }
RegimenColumnService { public void save(RegimenTemplate regimenTemplate, Long userId) { repository.save(regimenTemplate, userId); programService.setRegimenTemplateConfigured(regimenTemplate.getProgramId()); }  void save(RegimenTemplate regimenTemplate, Long userId); List<RegimenColumn> getRegimenColumnsByProgramId(Long programId); RegimenTemplate getRegimenTemplateOrMasterTemplate(Long programId); RegimenTemplate getRegimenTemplateByProgramId(Long programId); List<RegimenColumn> getRegimenColumnsForPrintByProgramId(Long programId); }
RegimenColumnService { public void save(RegimenTemplate regimenTemplate, Long userId) { repository.save(regimenTemplate, userId); programService.setRegimenTemplateConfigured(regimenTemplate.getProgramId()); }  void save(RegimenTemplate regimenTemplate, Long userId); List<RegimenColumn> getRegimenColumnsByProgramId(Long programId); RegimenTemplate getRegimenTemplateOrMasterTemplate(Long programId); RegimenTemplate getRegimenTemplateByProgramId(Long programId); List<RegimenColumn> getRegimenColumnsForPrintByProgramId(Long programId);  }