@Test public void testUpdateAsync() throws JsonProcessingException { List<Nominee> expectedNominees = seedHelper.getNominees(); List<Nominee> actualNominees = nomineeService.updateAsync(seedHelper.getNomineeRequest()); verify(nomineeRepository).update(anyListOf(Nominee.class)); assertEquals(expectedNominees, actualNominees); }
public List<Nominee> updateAsync(NomineeRequest nomineeRequest) throws JsonProcessingException { populateDataForUpdate(nomineeRequest.getNominees(), nomineeRequest.getRequestInfo()); update(nomineeRequest); return nomineeRequest.getNominees(); }
NomineeService { public List<Nominee> updateAsync(NomineeRequest nomineeRequest) throws JsonProcessingException { populateDataForUpdate(nomineeRequest.getNominees(), nomineeRequest.getRequestInfo()); update(nomineeRequest); return nomineeRequest.getNominees(); } }
NomineeService { public List<Nominee> updateAsync(NomineeRequest nomineeRequest) throws JsonProcessingException { populateDataForUpdate(nomineeRequest.getNominees(), nomineeRequest.getRequestInfo()); update(nomineeRequest); return nomineeRequest.getNominees(); }  }
NomineeService { public List<Nominee> updateAsync(NomineeRequest nomineeRequest) throws JsonProcessingException { populateDataForUpdate(nomineeRequest.getNominees(), nomineeRequest.getRequestInfo()); update(nomineeRequest); return 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 { public List<Nominee> updateAsync(NomineeRequest nomineeRequest) throws JsonProcessingException { populateDataForUpdate(nomineeRequest.getNominees(), nomineeRequest.getRequestInfo()); update(nomineeRequest); return 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);  }