@Test public void minLenAndmaxLenTest() { Map<String, String> variableDomains = new HashMap<>(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); PositiveBoundHiveDecimal maxLenTest = new PositiveBoundHiveDecimal(); PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag tag = new PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag(); tag.setName("name"); tag.setMinLen("5"); tag.setMaxLen("9"); List<Map<String, String>> newList = maxLenTest.pipelinePossibleStates(tag, listOfMaps); Assert.assertEquals(newList.get(0).get("name").length(), 5); Assert.assertEquals(newList.get(1).get("name").length(), 9); }
public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }
PositiveBoundHiveDecimal extends BoundaryDecimal<PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); } }
PositiveBoundHiveDecimal extends BoundaryDecimal<PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  }
PositiveBoundHiveDecimal extends BoundaryDecimal<PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  Class<PositiveBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList); }
PositiveBoundHiveDecimal extends BoundaryDecimal<PositiveBoundHiveDecimal.PositiveBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  Class<PositiveBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList);  }