@Test public void update_ExistingTodo_ShouldUpdateDocument() { Todo todoEntry = TodoTestUtil.createModel(TodoTestUtil.ID, TodoTestUtil.DESCRIPTION, TodoTestUtil.TITLE); service.update(todoEntry); verify(repositoryMock, times(1)).update(todoEntry); verifyNoMoreInteractions(repositoryMock); }
@Transactional @Override public void update(Todo todoEntry) { LOGGER.debug("Updating the information of a todo entry: {}", todoEntry); repository.update(todoEntry); }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void update(Todo todoEntry) { LOGGER.debug("Updating the information of a todo entry: {}", todoEntry); repository.update(todoEntry); } }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void update(Todo todoEntry) { LOGGER.debug("Updating the information of a todo entry: {}", todoEntry); repository.update(todoEntry); }  }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void update(Todo todoEntry) { LOGGER.debug("Updating the information of a todo entry: {}", todoEntry); repository.update(todoEntry); }  @Transactional @Override void addToIndex(Todo todoEntry); @Override long countSearchResults(String searchTerm); @Transactional @Override void deleteFromIndex(Long id); @Override List<TodoDocument> search(String searchTerm, Pageable page); @Transactional @Override void update(Todo todoEntry); }
RepositoryTodoIndexService implements TodoIndexService { @Transactional @Override public void update(Todo todoEntry) { LOGGER.debug("Updating the information of a todo entry: {}", todoEntry); repository.update(todoEntry); }  @Transactional @Override void addToIndex(Todo todoEntry); @Override long countSearchResults(String searchTerm); @Transactional @Override void deleteFromIndex(Long id); @Override List<TodoDocument> search(String searchTerm, Pageable page); @Transactional @Override void update(Todo todoEntry);  }