@Test public void maxTest2() { Map<String, String> variableDomains = new HashMap<>(); NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag neg = new NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag(); NegativeBoundHiveBigInt test = new NegativeBoundHiveBigInt(); 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); for (Map<String, String> map : list) { for (String key : map.keySet()) { al.add(map.get(key)); } } Assert.assertTrue(al.contains("9")); Assert.assertTrue(al.contains("101")); }
public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Long.toString(Long.MIN_VALUE); final String maxVALUE = Long.toString(Long.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); }
NegativeBoundHiveBigInt extends BoundaryInteger<NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Long.toString(Long.MIN_VALUE); final String maxVALUE = Long.toString(Long.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); } }
NegativeBoundHiveBigInt extends BoundaryInteger<NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Long.toString(Long.MIN_VALUE); final String maxVALUE = Long.toString(Long.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); }  }
NegativeBoundHiveBigInt extends BoundaryInteger<NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Long.toString(Long.MIN_VALUE); final String maxVALUE = Long.toString(Long.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); }  Class<NegativeBoundHiveBigIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action,
                                            List<Map<String, String>> possibleStateList); }
NegativeBoundHiveBigInt extends BoundaryInteger<NegativeBoundHiveBigInt.NegativeBoundHiveBigIntTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action, List<Map<String, String>> possibleStateList) { final String minVALUE = Long.toString(Long.MIN_VALUE); final String maxVALUE = Long.toString(Long.MAX_VALUE); return returnStates(action, possibleStateList, buildNumericData(action, minVALUE, maxVALUE, false)); }  Class<NegativeBoundHiveBigIntTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveBigIntTag action,
                                            List<Map<String, String>> possibleStateList);  }