@Test public void deleteFromIndex_ShouldDeleteDocumentFromIndex() { service.deleteFromIndex(1L); verify(repositoryMock, times(1)).delete("1"); verifyNoMoreInteractions(repositoryMock); }
@Transactional @Override public void deleteFromIndex(Long id) { LOGGER.debug("Deleting an existing document with id: {}", id); repository.delete(id.toString()); }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void deleteFromIndex(Long id) { LOGGER.debug("Deleting an existing document with id: {}", id); repository.delete(id.toString()); } }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void deleteFromIndex(Long id) { LOGGER.debug("Deleting an existing document with id: {}", id); repository.delete(id.toString()); }  }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void deleteFromIndex(Long id) { LOGGER.debug("Deleting an existing document with id: {}", id); repository.delete(id.toString()); }  @Transactional @Override void addToIndex(Todo todoEntry); @Transactional @Override void deleteFromIndex(Long id); @Override List<TodoDocument> search(String searchTerm); @Transactional @Override void update(Todo todoEntry); }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void deleteFromIndex(Long id) { LOGGER.debug("Deleting an existing document with id: {}", id); repository.delete(id.toString()); }  @Transactional @Override void addToIndex(Todo todoEntry); @Transactional @Override void deleteFromIndex(Long id); @Override List<TodoDocument> search(String searchTerm); @Transactional @Override void update(Todo todoEntry);  }