@Test public void search_QueryMethodTypeIsNotSet_ShouldReturnEmptyList() { List<TodoDocument> todos = service.search(SEARCH_TERM); verifyZeroInteractions(repositoryMock); assertTrue(todos.isEmpty()); }
@Override public List<TodoDocument> search(String searchTerm) { LOGGER.debug("Searching documents with search term: {}", searchTerm); return findDocuments(searchTerm); }
RepositoryTodoIndexService implements TodoIndexService { @Override public List<TodoDocument> search(String searchTerm) { LOGGER.debug("Searching documents with search term: {}", searchTerm); return findDocuments(searchTerm); } }
RepositoryTodoIndexService implements TodoIndexService { @Override public List<TodoDocument> search(String searchTerm) { LOGGER.debug("Searching documents with search term: {}", searchTerm); return findDocuments(searchTerm); }  }
RepositoryTodoIndexService implements TodoIndexService { @Override public List<TodoDocument> search(String searchTerm) { LOGGER.debug("Searching documents with search term: {}", searchTerm); return findDocuments(searchTerm); }  @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 { @Override public List<TodoDocument> search(String searchTerm) { LOGGER.debug("Searching documents with search term: {}", searchTerm); return findDocuments(searchTerm); }  @Transactional @Override void addToIndex(Todo todoEntry); @Transactional @Override void deleteFromIndex(Long id); @Override List<TodoDocument> search(String searchTerm); @Transactional @Override void update(Todo todoEntry);  }