/** * Filters scenarios by their categories according the the given report * configuration. * * @param scenarios the scenarios to filter. * @return the filtered scenarios. */ public List<ScenarioTestDoc> filterScenarios( final List<ScenarioTestDoc> scenarios) { return config.getSelectionFilter().filterScenarios(scenarios); }
/** * Filters the given categories according the the given report configuration. * * @param categories the categories to be filtered. * @return a copy of the given <code>categories</code> containing only those * categories that are accepted. */ public List<String> filter(final List<String> categories) { return config.getSelectionFilter().filterCategories(categories); }