@Test public void testUpdate() throws JsonProcessingException { doNothing().when(nomineeRepository).update(anyListOf(Nominee.class)); doNothing().when(documentsService).updateDocumentsForNominee(anyListOf(Nominee.class)); nomineeService.update(seedHelper.getNomineeRequest()); verify(nomineeRepository).update(anyListOf(Nominee.class)); verify(documentsService).updateDocumentsForNominee(anyListOf(Nominee.class)); }
@Transactional public void update(NomineeRequest nomineeRequest) { nomineeRepository.update(nomineeRequest.getNominees()); documentsService.updateDocumentsForNominee(nomineeRequest.getNominees()); }
NomineeService { @Transactional public void update(NomineeRequest nomineeRequest) { nomineeRepository.update(nomineeRequest.getNominees()); documentsService.updateDocumentsForNominee(nomineeRequest.getNominees()); } }
NomineeService { @Transactional public void update(NomineeRequest nomineeRequest) { nomineeRepository.update(nomineeRequest.getNominees()); documentsService.updateDocumentsForNominee(nomineeRequest.getNominees()); }  }
NomineeService { @Transactional public void update(NomineeRequest nomineeRequest) { nomineeRepository.update(nomineeRequest.getNominees()); documentsService.updateDocumentsForNominee(nomineeRequest.getNominees()); }  List<Nominee> getNominees(NomineeGetRequest nomineeGetRequest, RequestInfo requestInfo); List<Nominee> createAsync(NomineeRequest nomineeRequest); @Transactional void create(NomineeRequest nomineeRequest); List<Nominee> updateAsync(NomineeRequest nomineeRequest); @Transactional void update(NomineeRequest nomineeRequest); }
NomineeService { @Transactional public void update(NomineeRequest nomineeRequest) { nomineeRepository.update(nomineeRequest.getNominees()); documentsService.updateDocumentsForNominee(nomineeRequest.getNominees()); }  List<Nominee> getNominees(NomineeGetRequest nomineeGetRequest, RequestInfo requestInfo); List<Nominee> createAsync(NomineeRequest nomineeRequest); @Transactional void create(NomineeRequest nomineeRequest); List<Nominee> updateAsync(NomineeRequest nomineeRequest); @Transactional void update(NomineeRequest nomineeRequest);  }