@Test public void minLenTest() { Map<String, String> variableDomains = new HashMap<>(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); PositiveBoundHiveVarchar maxLenTest = new PositiveBoundHiveVarchar(); PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag neg = new PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag(); neg.setName("name"); neg.setMinLen("10"); Assert.assertEquals(neg.getMinLen(), "10"); List<Map<String, String>> newList = maxLenTest.pipelinePossibleStates(neg, listOfMaps); Assert.assertEquals(newList.get(0).get("name").length(), 10); }
public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, buildVarcharData(action, true)); }
PositiveBoundHiveVarchar extends BoundaryVarchar<PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, buildVarcharData(action, true)); } }
PositiveBoundHiveVarchar extends BoundaryVarchar<PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, buildVarcharData(action, true)); }  }
PositiveBoundHiveVarchar extends BoundaryVarchar<PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, buildVarcharData(action, true)); }  Class<PositiveBoundHiveVarcharTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action,
                                            List<Map<String, String>> possibleStateList); }
PositiveBoundHiveVarchar extends BoundaryVarchar<PositiveBoundHiveVarchar.PositiveBoundHiveVarcharTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, buildVarcharData(action, true)); }  Class<PositiveBoundHiveVarcharTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveVarcharTag action,
                                            List<Map<String, String>> possibleStateList);  }