@Test public void minTest2() { Map<String, String> variableDomains = new HashMap<>(); PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag pos = new PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag(); PositiveBoundHiveTinyInt test = new PositiveBoundHiveTinyInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); ArrayList<String> al = new ArrayList<>(); variableDomains.put("test", ""); listOfMaps.add(variableDomains); pos.setMin("10"); pos.setMax("100"); pos.setNullable("true"); pos.setName("test"); List<Map<String, String>> list = test.pipelinePossibleStates(pos, listOfMaps); for (Map<String, String> map : list) { for (String key : map.keySet()) { al.add(map.get(key)); } } Assert.assertTrue(al.contains("10")); Assert.assertTrue(al.contains("11")); }
public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }
PositiveBoundHiveTinyInt extends
    BoundaryInteger<PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); } }
PositiveBoundHiveTinyInt extends
    BoundaryInteger<PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }  }
PositiveBoundHiveTinyInt extends
    BoundaryInteger<PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }  Class<PositiveBoundHiveTinyIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action,
                                                List<Map<String, String>> possibleStateList); }
PositiveBoundHiveTinyInt extends
    BoundaryInteger<PositiveBoundHiveTinyInt.PositiveBoundHiveTinyIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }  Class<PositiveBoundHiveTinyIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveTinyIntTag action,
                                                List<Map<String, String>> possibleStateList);  }