HomeListPresenter implements HomeListContract.Presenter { @Override public void loadAllLists() { allLists = todoRepository.getAllLists(); allLists.addChangeListener(new RealmChangeListener<RealmResults<TodoList>>() { @Override public void onChange(RealmResults<TodoList> element) { LogUtils.d("onChange: " + element.size()); if (view != null) { view.notifyDataChanged(); } } }); view.bindListData(allLists); } HomeListPresenter(TodoRepository todoRepository); @Override void init(); @Override void loadAllLists(); @Override void attachView(HomeListContract.View view); @Override void detachView(); @Override void onDestroy(); @Override void onCreateListItemClicked(); @Override void onFloatingActionButtonClicked(); @Override void onListItemClicked(TodoList list); @Override void onListItemLongClicked(TodoList list); @Override void onDestroyActionMode(); @Override void deleteSelectedItems(List<Long> itemIds);  }
@Ignore @Test public void shouldLoadDataFromRepoWhenLoadAllLists() throws Exception { presenter.loadAllLists(); verify(repository).getAllLists(); }