@Test public void searchFilter_FilterByString() { mModulesPresenter.setFiltering("barcode"); verify(mModulesView).filter("barcode"); }
@Override public void setFiltering(ModulesType requestModuleFilterType) { mCurrentFiltering = mCurrentFiltering == requestModuleFilterType ? ModulesType.ALL_CATEGORIES : requestModuleFilterType; mModulesView.filter(mCurrentFiltering); }
ModulesPresenter implements Presenter { @Override public void setFiltering(ModulesType requestModuleFilterType) { mCurrentFiltering = mCurrentFiltering == requestModuleFilterType ? ModulesType.ALL_CATEGORIES : requestModuleFilterType; mModulesView.filter(mCurrentFiltering); } }
ModulesPresenter implements Presenter { @Override public void setFiltering(ModulesType requestModuleFilterType) { mCurrentFiltering = mCurrentFiltering == requestModuleFilterType ? ModulesType.ALL_CATEGORIES : requestModuleFilterType; mModulesView.filter(mCurrentFiltering); } ModulesPresenter(@NonNull ModulesDataSource modulesRepository, @NonNull View modulesView); }
ModulesPresenter implements Presenter { @Override public void setFiltering(ModulesType requestModuleFilterType) { mCurrentFiltering = mCurrentFiltering == requestModuleFilterType ? ModulesType.ALL_CATEGORIES : requestModuleFilterType; mModulesView.filter(mCurrentFiltering); } ModulesPresenter(@NonNull ModulesDataSource modulesRepository, @NonNull View modulesView); @Override void loadModules(); @Override void openModuleDetails(@NonNull Module requestedModule); @Override void start(); @Override void setFiltering(ModulesType requestModuleFilterType); @Override void setFiltering(String requestTitle); @Override void setDisplayTypeCards(); @Override void setDisplayTypeSearch(); @Override ModulesType getFiltering(); }
ModulesPresenter implements Presenter { @Override public void setFiltering(ModulesType requestModuleFilterType) { mCurrentFiltering = mCurrentFiltering == requestModuleFilterType ? ModulesType.ALL_CATEGORIES : requestModuleFilterType; mModulesView.filter(mCurrentFiltering); } ModulesPresenter(@NonNull ModulesDataSource modulesRepository, @NonNull View modulesView); @Override void loadModules(); @Override void openModuleDetails(@NonNull Module requestedModule); @Override void start(); @Override void setFiltering(ModulesType requestModuleFilterType); @Override void setFiltering(String requestTitle); @Override void setDisplayTypeCards(); @Override void setDisplayTypeSearch(); @Override ModulesType getFiltering();  }