AbstractTaskListFilterSettingsManager extends FilterSettingsManagerImpl { protected Consumer<FilterSettingsBuilderHelper> commonColumnSettings() { return builder -> { builder.setColumn(COLUMN_ACTIVATION_TIME, constants.ActivationTime(), DateUtils.getDateTimeFormatMask()); builder.setColumn(COLUMN_ACTUAL_OWNER, constants.Actual_Owner()); builder.setColumn(COLUMN_CREATED_BY, constants.CreatedBy()); builder.setColumn(COLUMN_CREATED_ON, constants.Created_On(), DateUtils.getDateTimeFormatMask()); builder.setColumn(COLUMN_DEPLOYMENT_ID, constants.DeploymentId()); builder.setColumn(COLUMN_DESCRIPTION, constants.Description()); builder.setColumn(COLUMN_DUE_DATE, constants.DueDate(), DateUtils.getDateTimeFormatMask()); builder.setColumn(COLUMN_NAME, constants.Task()); builder.setColumn(COLUMN_PARENT_ID, constants.ParentId()); builder.setColumn(COLUMN_PRIORITY, constants.Priority()); builder.setColumn(COLUMN_PROCESS_ID, constants.Process_Definition_Id()); builder.setColumn(COLUMN_PROCESS_INSTANCE_ID, constants.Process_Instance_Id()); builder.setColumn(COLUMN_PROCESS_SESSION_ID, constants.ProcessSessionId()); builder.setColumn(COLUMN_STATUS, constants.Status()); builder.setColumn(COLUMN_TASK_ID, constants.Id()); builder.setColumn(COLUMN_WORK_ITEM_ID, constants.WorkItemId()); builder.setColumn(COLUMN_LAST_MODIFICATION_DATE, constants.Last_Modification_Date()); builder.setColumn(COLUMN_PROCESS_INSTANCE_CORRELATION_KEY, constants.Process_Instance_Correlation_Key()); builder.setColumn(COLUMN_PROCESS_INSTANCE_DESCRIPTION, constants.Process_Instance_Description()); builder.setColumn(COLUMN_SLA_COMPLIANCE, constants.SlaCompliance()); builder.setColumn(COLUMN_SLA_DUE_DATE, constants.SlaDueDate()); }; }  @Override FilterSettings getVariablesFilterSettings(final List<Long> taskIds);  }
@Test public void testStatusSettingsColumns() { final FilterSettingsBuilderHelper helper = FilterSettingsBuilderHelper.init(); getFilterSettingsManager().commonColumnSettings().accept(helper); final FilterSettings filterSettings = helper.buildSettings(); assertEquals(getDataSetExpectedColumns().size(), filterSettings.getColumnSettingsList().size()); getDataSetExpectedColumns().forEach(c -> assertNotNull(filterSettings.getColumnSettings(c))); }