ScriptFilterUtil { private static void doAction(List<ScriptStep> steps, SortedMap<Integer, ScriptStep> stepsToAdd, Set<ScriptStep> stepsToDelete, Set<ScriptFilterAction> actions, ScriptStep step) { for (ScriptFilterAction scriptFilterAction : actions) { if (scriptFilterAction.getAction().equals(ScriptFilterActionType.add)) { doAddAction(steps, stepsToAdd, scriptFilterAction, step); } else if (scriptFilterAction.getAction().equals(ScriptFilterActionType.remove)) { doRemoveAction(steps, stepsToAdd, stepsToDelete, scriptFilterAction, step); } else if (scriptFilterAction.getAction().equals(ScriptFilterActionType.replace)) { doReplaceAction(steps, stepsToAdd, stepsToDelete, scriptFilterAction, step); } } }  static List<ScriptStep> applyFilters(Collection<ScriptFilter> filters, List<ScriptStep> steps); static void applyFilters(List<Integer> filterIds, Script script); static void applyFiltersToScript(Collection<ScriptFilter> filters, Script script); static void applyFilter(ScriptFilter filter, List<ScriptStep> steps); static boolean filterOnField(String filterField, ScriptFilterCondition condition,
            ScriptStep currentStep); static boolean filterOnFieldSets(Set<RequestData> fields, ScriptFilterCondition condition,
            ScriptStep currentStep, List<ScriptStep> steps); static ScriptStep doAction(Set<ScriptFilterAction> actions, ScriptStep step);  }
@Test public void testDoAction_1() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_2() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_3() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_4() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_5() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_6() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }
@Test public void testDoAction_7() throws Exception { Set<ScriptFilterAction> actions = new HashSet(); ScriptStep step = new ScriptStep(); ScriptStep result = ScriptFilterUtil.doAction(actions, step); assertEquals(null, result); }