@Test public void pipelineEmptyListTest() { List<Map<String, String>> emptyList = new LinkedList<>(); SingleValueAssignExtension assign = new SingleValueAssignExtension(); Assign concreteAssignTag = new Assign(); concreteAssignTag.setName("var_out_test"); concreteAssignTag.setExpr("A"); List<Map<String, String>> processedList = assign.pipelinePossibleStates(concreteAssignTag, emptyList); Assert.assertNotNull(processedList); Assert.assertEquals(0, processedList.size()); }
public List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList) { for (Map<String, String> possibleState : possibleStateList) { possibleState.put(action.getName(), action.getExpr()); } return possibleStateList; }
SingleValueAssignExtension implements CustomTagExtension<Assign> { public List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList) { for (Map<String, String> possibleState : possibleStateList) { possibleState.put(action.getName(), action.getExpr()); } return possibleStateList; } }
SingleValueAssignExtension implements CustomTagExtension<Assign> { public List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList) { for (Map<String, String> possibleState : possibleStateList) { possibleState.put(action.getName(), action.getExpr()); } return possibleStateList; }  }
SingleValueAssignExtension implements CustomTagExtension<Assign> { public List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList) { for (Map<String, String> possibleState : possibleStateList) { possibleState.put(action.getName(), action.getExpr()); } return possibleStateList; }  Class<Assign> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList); }
SingleValueAssignExtension implements CustomTagExtension<Assign> { public List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList) { for (Map<String, String> possibleState : possibleStateList) { possibleState.put(action.getName(), action.getExpr()); } return possibleStateList; }  Class<Assign> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(Assign action, List<Map<String, String>> possibleStateList);  }