@Test public void test_draft_repository_should_delete_draft() { List<Long> draftIdList = Collections.singletonList(1L); draftRepository.delete(draftIdList); verify(draftJpaRepository).deleteByIdList(draftIdList); }
public void delete(List<Long> draftIdList) { draftJpaRepository.deleteByIdList(draftIdList); }
DraftRepository { public void delete(List<Long> draftIdList) { draftJpaRepository.deleteByIdList(draftIdList); } }
DraftRepository { public void delete(List<Long> draftIdList) { draftJpaRepository.deleteByIdList(draftIdList); } DraftRepository(DraftJpaRepository draftJpaRepository, ObjectMapper objectMapper); }
DraftRepository { public void delete(List<Long> draftIdList) { draftJpaRepository.deleteByIdList(draftIdList); } DraftRepository(DraftJpaRepository draftJpaRepository, ObjectMapper objectMapper); long saveDraft(NewDraft newDraft); DraftResult getDrafts(DraftSearchCriteria searchCriteria); void delete(List<Long> draftIdList); void delete(long draftId); void updateDraft(UpdateDraft draftUpdateRequest); }
DraftRepository { public void delete(List<Long> draftIdList) { draftJpaRepository.deleteByIdList(draftIdList); } DraftRepository(DraftJpaRepository draftJpaRepository, ObjectMapper objectMapper); long saveDraft(NewDraft newDraft); DraftResult getDrafts(DraftSearchCriteria searchCriteria); void delete(List<Long> draftIdList); void delete(long draftId); void updateDraft(UpdateDraft draftUpdateRequest);  }