@Test public void testLoadMoreError() throws Exception { Integer offset = DataManager.PAGE_LIMIT; when(mNewsView.getItemOffset()).thenReturn(offset); when(mDataManager.getAllNewses(offset)) .thenReturn(Single.error(mock(HttpException.class))); mPresenter.loadMore(); verify(mNewsView).showLoadMoreFailed(); }
public void loadMore() { loadTopics(false); }
NewsPresenter extends BasePresenter<INewsView> { public void loadMore() { loadTopics(false); } }
NewsPresenter extends BasePresenter<INewsView> { public void loadMore() { loadTopics(false); } @Inject  NewsPresenter(DataManager dataManager); }
NewsPresenter extends BasePresenter<INewsView> { public void loadMore() { loadTopics(false); } @Inject  NewsPresenter(DataManager dataManager); @Override void onAttach(INewsView view); void onRefresh(); void loadMore(); @Override void onDetach(); }
NewsPresenter extends BasePresenter<INewsView> { public void loadMore() { loadTopics(false); } @Inject  NewsPresenter(DataManager dataManager); @Override void onAttach(INewsView view); void onRefresh(); void loadMore(); @Override void onDetach();  }