@Test public void onRefreshListWouldStartLoadingList() { when(module.refreshVocabularyWords()).thenReturn(Call.empty()); presenter.onRefreshList(); verify(module).refreshVocabularyWords(); }
public void onRefreshList() { logger.debug("onRefreshList()"); call.cancel(); call = vocabularyModule.refreshVocabularyWords(); call.enqueue(this::processData, this::processRefreshError); }
VocabularyListPresenter extends AbstractPresenter<IVocabularyListView> { public void onRefreshList() { logger.debug("onRefreshList()"); call.cancel(); call = vocabularyModule.refreshVocabularyWords(); call.enqueue(this::processData, this::processRefreshError); } }
VocabularyListPresenter extends AbstractPresenter<IVocabularyListView> { public void onRefreshList() { logger.debug("onRefreshList()"); call.cancel(); call = vocabularyModule.refreshVocabularyWords(); call.enqueue(this::processData, this::processRefreshError); } @Inject  VocabularyListPresenter(VocabularyModule vocabularyModule, VocabularyNavigator navigator,
                                   @Named(VIEW_EXECUTOR) Executor executor); }
VocabularyListPresenter extends AbstractPresenter<IVocabularyListView> { public void onRefreshList() { logger.debug("onRefreshList()"); call.cancel(); call = vocabularyModule.refreshVocabularyWords(); call.enqueue(this::processData, this::processRefreshError); } @Inject  VocabularyListPresenter(VocabularyModule vocabularyModule, VocabularyNavigator navigator,
                                   @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onBind(IVocabularyListView view); @Override void onDestroy(); void onWordSelected(int position); void onLoadList(); void onRefreshList(); }
VocabularyListPresenter extends AbstractPresenter<IVocabularyListView> { public void onRefreshList() { logger.debug("onRefreshList()"); call.cancel(); call = vocabularyModule.refreshVocabularyWords(); call.enqueue(this::processData, this::processRefreshError); } @Inject  VocabularyListPresenter(VocabularyModule vocabularyModule, VocabularyNavigator navigator,
                                   @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onBind(IVocabularyListView view); @Override void onDestroy(); void onWordSelected(int position); void onLoadList(); void onRefreshList(); static final int NO_POSITION; }