@Test public void testShouldDeleteDraft() { List<Long> draftIdList = Collections.singletonList(1L); draftService.delete(draftIdList); verify(draftRepository).delete(draftIdList); }
public void delete(List<Long> draftIdList) { draftRepository.delete(draftIdList); }
DraftService { public void delete(List<Long> draftIdList) { draftRepository.delete(draftIdList); } }
DraftService { public void delete(List<Long> draftIdList) { draftRepository.delete(draftIdList); } DraftService(DraftRepository draftRepository); }
DraftService { public void delete(List<Long> draftIdList) { draftRepository.delete(draftIdList); } 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 delete(List<Long> draftIdList) { draftRepository.delete(draftIdList); } DraftService(DraftRepository draftRepository); long save(NewDraft newDraft); DraftResult getDrafts(DraftSearchCriteria searchCriteria); void update(UpdateDraft updateDraft); void delete(List<Long> draftIdList); void delete(long draftId);  }