PositiveBoundHiveSmallInt extends BoundaryInteger<PositiveBoundHiveSmallInt.PositiveBoundHiveSmallIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveSmallIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-32768"; final String maxVALUE = "32767"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }  Class<PositiveBoundHiveSmallIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveSmallIntTag action,
                                                            List<Map<String, String>> possibleStateList);  }
@Test public void minTest2() { Map<String, String> variableDomains = new HashMap<>(); PositiveBoundHiveSmallInt.PositiveBoundHiveSmallIntTag pos = new PositiveBoundHiveSmallInt.PositiveBoundHiveSmallIntTag(); PositiveBoundHiveSmallInt test = new PositiveBoundHiveSmallInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); pos.setMin("0"); pos.setMax("100"); pos.setNullable("true"); pos.setName("test"); List<Map<String, String>> list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.get(0).get("test"), "0"); Assert.assertEquals(list.get(1).get("test"), "1"); Assert.assertEquals(list.get(2).get("test"), "50"); Assert.assertEquals(list.get(3).get("test"), "99"); Assert.assertEquals(list.get(4).get("test"), "100"); }
@Test public void minTest3() { Map<String, String> variableDomains = new HashMap<>(); PositiveBoundHiveSmallInt.PositiveBoundHiveSmallIntTag pos = new PositiveBoundHiveSmallInt.PositiveBoundHiveSmallIntTag(); PositiveBoundHiveSmallInt test = new PositiveBoundHiveSmallInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); pos.setMin("-1300"); pos.setMax("100"); pos.setNullable("true"); pos.setName("test"); List<Map<String, String>> list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.get(0).get("test"), "-1300"); Assert.assertEquals(list.get(1).get("test"), "-1299"); Assert.assertEquals(list.get(2).get("test"), "700"); Assert.assertEquals(list.get(3).get("test"), "99"); Assert.assertEquals(list.get(4).get("test"), "100"); }