ListDetailPresenter implements ListDetailContract.Presenter { @Override public void deleteSelectedItems(List<Long> itemIds) { todoRepository.deleteTasks(itemIds); } ListDetailPresenter(TodoRepository todoRepository, long listId); @Override void init(); @Override void addNewTask(String taskTitle); @Override void onTaskItemCheckedChanged(Task task, boolean isDone); @Override void onTaskItemClicked(Task task); @Override void onTaskItemLongClicked(Task task); @Override void onDestroyDeleteActionMode(); @Override void deleteSelectedItems(List<Long> itemIds); @Override void onEditActionExpanded(); @Override void onEditActionCollapsed(String updatedTitle); @Override void onDeleteMenuItemClicked(); @Override void attachView(ListDetailContract.View view); @Override void detachView(); @Override void onDestroy();  }
@Test public void shouldDeleteItemsFromRepositoryWhenDeleting() throws Exception { List<Long> itemIds = new ArrayList<>(); presenter.deleteSelectedItems(itemIds); verify(repository).deleteTasks(itemIds); }