AbstractTaskListPresenter extends AbstractMultiGridPresenter<TaskSummary, V> { @Override protected void removeActiveFilter(final ColumnFilter columnFilter) { super.removeActiveFilter(columnFilter); if (isFilteredByTaskName(columnFilter) != null) { view.removeDomainSpecifColumns(); } }  abstract void setupDetailBreadcrumb(String detailLabel); @Override void openErrorView(final String tId); @Override Predicate<TaskSummary> getViewErrorsActionCondition(); void getDomainSpecifDataForTasks(final Integer startRange,
                                            final List<TaskSummary> tasksFromDataSet,
                                            final Boolean lastPageExactCount); void releaseTask(final TaskSummary task); void claimTask(final TaskSummary task); void claimAndWorkTask(final TaskSummary task); void resumeTask(final TaskSummary task); void suspendTask(final TaskSummary task); void getMenus(final Consumer<Menus> menusConsumer); @Override void selectSummaryItem(final TaskSummary summary); void onTaskRefreshedEvent(@Observes TaskRefreshedEvent event); void onTaskDetailsClosed(@Observes BeforeClosePlaceEvent closed); void onTaskCompletedEvent(@Observes TaskCompletedEvent event); @Inject void setDataSetQueryHelperDomainSpecific(final DataSetQueryHelper dataSetQueryHelperDomainSpecific); @Inject void setTaskService(final Caller<TaskService> taskService); @Override void setupActiveSearchFilters(); @Override boolean existActiveSearchFilters(); @Override ActiveFilterItem getActiveFilterFromColumnFilter(ColumnFilter columnFilter); String getStatusColumnFilterDescription(ColumnFilter columnFilter); void openProcessInstanceView(final String processInstanceId); void bulkClaim(List<TaskSummary> taskSummaries); void bulkRelease(List<TaskSummary> taskSummaries); void bulkResume(List<TaskSummary> taskSummaries); void bulkSuspend(List<TaskSummary> taskSummaries); void bulkReassign(List<TaskSummary> taskSummaries); @Inject void setTranslationService(TranslationService translationService);  }
@Test public void testRemoveActiveFilter() { final String taskName = "taskName"; getPresenter().removeActiveFilter(equalsTo(COLUMN_NAME, taskName)); verify(viewMock).removeDomainSpecifColumns(); reset(viewMock); getPresenter().removeActiveFilter(in(COLUMN_NAME, Arrays.asList(taskName))); verify(viewMock, never()).removeDomainSpecifColumns(); }
@Test public void testOnBasicFilterRemoveEvent() { final ActiveFilterItem<Object> filter = new ActiveFilterItem<>("key1", null, null, null, null); final ColumnFilter columnFilter = mock(ColumnFilter.class); getPresenter().onBasicFilterRemoveEvent(new BasicFilterRemoveEvent(datasetUId, filter, columnFilter)); verify(viewMock).removeActiveFilter(filter); verify(filterSettings).removeColumnFilter(columnFilter); }