AbstractTaskListFilterSettingsManager extends FilterSettingsManagerImpl { @Override public FilterSettings getVariablesFilterSettings(final List<Long> taskIds) { FilterSettingsBuilderHelper builder = FilterSettingsBuilderHelper.init(); builder.initBuilder(); builder.dataset(HUMAN_TASKS_WITH_VARIABLES_DATASET); builder.filter(in(COLUMN_TASK_VARIABLE_TASK_ID, taskIds)); builder.filterOn(true, true, true); builder.tableOrderEnabled(true); builder.tableOrderDefault(COLUMN_TASK_ID, SortOrder.ASCENDING); FilterSettings varTableSettings = builder.buildSettings(); varTableSettings.setTablePageSize(-1); return varTableSettings; }  @Override FilterSettings getVariablesFilterSettings(final List<Long> taskIds);  }
@Test public void getVariablesTableSettingsTest() { FilterSettings filterSettings = getFilterSettingsManager().getVariablesFilterSettings(singletonList(1l)); List<DataSetOp> ops = filterSettings.getDataSetLookup().getOperationList(); for (DataSetOp op : ops) { if (op.getType().equals(DataSetOpType.FILTER)) { List<ColumnFilter> columnFilters = ((DataSetFilter) op).getColumnFilterList(); for (ColumnFilter columnFilter : columnFilters) { assertEquals(COLUMN_TASK_VARIABLE_TASK_ID, columnFilter.getColumnId()); assertEquals(COLUMN_TASK_VARIABLE_TASK_ID + " in 1", columnFilter.toString()); } } } }