@Test public void setTest() { Map<String, String> variableDomains = new HashMap<>(); List<Map<String, String>> listOfMaps = new LinkedList<>(); variableDomains.put("A", "1"); variableDomains.put("B", "2"); variableDomains.put("C", "3"); listOfMaps.add(variableDomains); NegativeBoundHiveDecimal setTest = new NegativeBoundHiveDecimal(); NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag tag = new NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag(); tag.setNullable("true"); tag.setLength("38,18"); tag.setName("Name"); List<Map<String, String>> newList = setTest.pipelinePossibleStates(tag, listOfMaps); Assert.assertEquals(newList.get(0).get("A"), "1"); Assert.assertEquals(newList.get(0).get("B"), "2"); Assert.assertEquals(newList.get(0).get("C"), "3"); Assert.assertEquals(newList.get(1).get("A"), "1"); Assert.assertEquals(newList.get(1).get("B"), "2"); Assert.assertEquals(newList.get(1).get("C"), "3"); Assert.assertEquals(newList.size(), 2); }
public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); } }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList); }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList);  }