PositiveBoundHiveInt extends BoundaryInteger<PositiveBoundHiveInt.PositiveBoundHiveIntTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Integer.toString(Integer.MIN_VALUE); final String maxVALUE = Integer.toString(Integer.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, true)); }  Class<PositiveBoundHiveIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveIntTag action,
                                                            List<Map<String, String>> possibleStateList);  }
@Test public void nullTest2() { Map<String, String> variableDomains = new HashMap<>(); PositiveBoundHiveBigInt.PositiveBoundHiveBigIntTag pos = new PositiveBoundHiveBigInt.PositiveBoundHiveBigIntTag(); PositiveBoundHiveBigInt test = new PositiveBoundHiveBigInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); variableDomains.put("test", ""); listOfMaps.add(variableDomains); pos.setMin("20"); pos.setMax("100"); pos.setName("test"); pos.setNullable("true"); List<Map<String, String>> list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.size(), 6); pos.setNullable("false"); list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.size(), 5); }
@Test public void zeroTest() { Map<String, String> variableDomains = new HashMap<>(); PositiveBoundHiveBigInt.PositiveBoundHiveBigIntTag pos = new PositiveBoundHiveBigInt.PositiveBoundHiveBigIntTag(); PositiveBoundHiveBigInt test = new PositiveBoundHiveBigInt(); List<Map<String, String>> listOfMaps = new LinkedList<>(); variableDomains.put("test", ""); listOfMaps.add(variableDomains); pos.setMin("-1"); pos.setMax("100"); pos.setName("test"); pos.setNullable("true"); List<Map<String, String>> list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.size(), 7); pos.setNullable("false"); list = test.pipelinePossibleStates(pos, listOfMaps); Assert.assertEquals(list.size(), 6); }