@Test public void refreshWhenNoParams() { mPresenter.refresh(); verify(mSearchView).hideSwipeRefresh(); }
public void refresh() { if (mKeyword != null && mDateRange != null) { refresh(mKeyword, mDateRange, mIsSortByDate); } else { mSearchView.hideSwipeRefresh(); } }
SearchPresenter extends BasePresenter { public void refresh() { if (mKeyword != null && mDateRange != null) { refresh(mKeyword, mDateRange, mIsSortByDate); } else { mSearchView.hideSwipeRefresh(); } } }
SearchPresenter extends BasePresenter { public void refresh() { if (mKeyword != null && mDateRange != null) { refresh(mKeyword, mDateRange, mIsSortByDate); } else { mSearchView.hideSwipeRefresh(); } } SearchPresenter(@NonNull SearchView searchView);  SearchPresenter(@NonNull SearchView searchView, @NonNull DataManager dataManager,
                           @NonNull SharedPrefsContract prefsManager, @NonNull UtilsContract utils); }
SearchPresenter extends BasePresenter { public void refresh() { if (mKeyword != null && mDateRange != null) { refresh(mKeyword, mDateRange, mIsSortByDate); } else { mSearchView.hideSwipeRefresh(); } } SearchPresenter(@NonNull SearchView searchView);  SearchPresenter(@NonNull SearchView searchView, @NonNull DataManager dataManager,
                           @NonNull SharedPrefsContract prefsManager, @NonNull UtilsContract utils); void setView(SearchView searchView); void setDataManager(DataManager dataManager); void setPrefsManager(SharedPrefsContract sharedPrefsContract); void setUtils(UtilsContract utils); @Override void setup(); @Override void restoreState(Bundle savedInstanceState); @Override void saveState(Bundle outState); @Override void destroy(); @Override void unsubscribe(); void refresh(); void refresh(String dateRange); void refresh(boolean isSortByDate); void refresh(String keyword, String dateRange, boolean isSortByDate); void loadPostIdListBySearch(String keyword, String dateRange, int page, boolean isSortByDate); String getKeyword(); void setKeyword(String keyword); String getDateRange(); void setDateRange(String dateRange); boolean isSortByDate(); void setSortByDate(boolean isSortByDate); void updateCachedPostList(); List<Post> getCachedPosts(); void loadMore(); void setShowPostSummaryPref(); }
SearchPresenter extends BasePresenter { public void refresh() { if (mKeyword != null && mDateRange != null) { refresh(mKeyword, mDateRange, mIsSortByDate); } else { mSearchView.hideSwipeRefresh(); } } SearchPresenter(@NonNull SearchView searchView);  SearchPresenter(@NonNull SearchView searchView, @NonNull DataManager dataManager,
                           @NonNull SharedPrefsContract prefsManager, @NonNull UtilsContract utils); void setView(SearchView searchView); void setDataManager(DataManager dataManager); void setPrefsManager(SharedPrefsContract sharedPrefsContract); void setUtils(UtilsContract utils); @Override void setup(); @Override void restoreState(Bundle savedInstanceState); @Override void saveState(Bundle outState); @Override void destroy(); @Override void unsubscribe(); void refresh(); void refresh(String dateRange); void refresh(boolean isSortByDate); void refresh(String keyword, String dateRange, boolean isSortByDate); void loadPostIdListBySearch(String keyword, String dateRange, int page, boolean isSortByDate); String getKeyword(); void setKeyword(String keyword); String getDateRange(); void setDateRange(String dateRange); boolean isSortByDate(); void setSortByDate(boolean isSortByDate); void updateCachedPostList(); List<Post> getCachedPosts(); void loadMore(); void setShowPostSummaryPref(); static final String TAG; }