@Test public void testShouldUpdateDraft() { draftService.update(updateDraftRequest()); verify(draftRepository).updateDraft(updateDraftRequest()); }
public void update(UpdateDraft updateDraft) { draftRepository.updateDraft(updateDraft); }
DraftService { public void update(UpdateDraft updateDraft) { draftRepository.updateDraft(updateDraft); } }
DraftService { public void update(UpdateDraft updateDraft) { draftRepository.updateDraft(updateDraft); } DraftService(DraftRepository draftRepository); }
DraftService { public void update(UpdateDraft updateDraft) { draftRepository.updateDraft(updateDraft); } DraftService(DraftRepository draftRepository); long save(NewDraft newDraft); DraftResult getDrafts(DraftSearchCriteria searchCriteria); void update(UpdateDraft updateDraft); void delete(List<Long> draftIdList); void delete(long draftId); }
DraftService { public void update(UpdateDraft updateDraft) { draftRepository.updateDraft(updateDraft); } DraftService(DraftRepository draftRepository); long save(NewDraft newDraft); DraftResult getDrafts(DraftSearchCriteria searchCriteria); void update(UpdateDraft updateDraft); void delete(List<Long> draftIdList); void delete(long draftId);  }