ExecutionErrorListFilterSettingsManager extends FilterSettingsManagerImpl { @Override public List<FilterSettings> initDefaultFilters() { return Arrays.asList( createFilterSettings(EXECUTION_ERROR_LIST_DATASET, COLUMN_ERROR_DATE, builder -> builder.filter(equalsTo(COLUMN_ERROR_ACK, 0)), getDefaultFilterSettingsKey(), constants.New(), constants.UnacknowledgedErrors()), createFilterSettings(EXECUTION_ERROR_LIST_DATASET, COLUMN_ERROR_DATE, builder -> builder.filter(equalsTo(COLUMN_ERROR_ACK, 1)), TAB_ACK, constants.Acknowledged(), constants.AcknowledgedErrors()) ); }  @Override String getGridGlobalPreferencesKey(); @Override FilterSettings createFilterSettingsPrototype(); @Override void loadSavedFiltersFromPreferences(final MultiGridPreferencesStore store,
                                                final Consumer<List<SavedFilter>> savedFiltersConsumer); @Override List<FilterSettings> initDefaultFilters();  }
@Test public void testInitDefaultFilters() { final List<FilterSettings> settings = manager.initDefaultFilters(); assertNotNull(settings); assertEquals(2, settings.size()); final ColumnFilter columnFilter = settings.get(0).getDataSetLookup().getFirstFilterOp().getColumnFilterList().get(0); assertEquals(COLUMN_ERROR_ACK, columnFilter.getColumnId()); assertTrue(columnFilter instanceof CoreFunctionFilter); assertTrue(((CoreFunctionFilter) columnFilter).getParameters().get(0) instanceof Integer); assertEquals( EXECUTION_ERROR_LIST_PREFIX + "_" + DEFAULT_FILTER_SETTINGS_KEY, settings.get(0).getKey()); }