NegativeBoundHiveTinyInt extends BoundaryInteger<NegativeBoundHiveTinyInt.NegativeBoundHiveTinyIntTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveTinyIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = "-128"; final String maxVALUE = "127"; return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); }  Class<NegativeBoundHiveTinyIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveTinyIntTag action,
                                                            List<Map<String, String>> possibleStateList);  }
@Test public void maxTest2() { Map<String, String> variableDomains = new HashMap<>(); NegativeBoundHiveTinyInt.NegativeBoundHiveTinyIntTag neg = new NegativeBoundHiveTinyInt.NegativeBoundHiveTinyIntTag(); NegativeBoundHiveTinyInt test = new NegativeBoundHiveTinyInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); ArrayList<String> al = new ArrayList<>(); variableDomains.put("test", ""); listOfMaps.add(variableDomains); neg.setMin("10"); neg.setMax("100"); neg.setNullable("true"); neg.setName("test"); List<Map<String, String>> list = test.pipelinePossibleStates(neg, listOfMaps); Assert.assertTrue(list.get(0).get("test").equals("9")); Assert.assertTrue(list.get(1).get("test").equals("101")); }
@Test public void maxTest3() { Map<String, String> variableDomains = new HashMap<>(); NegativeBoundHiveTinyInt.NegativeBoundHiveTinyIntTag neg = new NegativeBoundHiveTinyInt.NegativeBoundHiveTinyIntTag(); NegativeBoundHiveTinyInt test = new NegativeBoundHiveTinyInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); ArrayList<String> al = new ArrayList<>(); variableDomains.put("test", ""); listOfMaps.add(variableDomains); neg.setMin("0"); neg.setMax("12342"); neg.setNullable("true"); neg.setName("test"); List<Map<String, String>> list = test.pipelinePossibleStates(neg, listOfMaps); Assert.assertTrue(list.get(0).get("test").equals("-1")); Assert.assertTrue(list.get(1).get("test").equals("128")); }