@Test public void nullTest2() { Map<String, String> variableDomains = new HashMap<>(); NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag neg = new NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag(); NegativeBoundHiveDecimal test = new NegativeBoundHiveDecimal(); List<Map<String, String>> listOfMaps = new LinkedList<>(); variableDomains.put("decimal", ""); listOfMaps.add(variableDomains); neg.setLength("18,8"); neg.setName("decimal"); neg.setNullable("true"); List<Map<String, String>> list = test.pipelinePossibleStates(neg, listOfMaps); Assert.assertEquals(list.size(), 2); neg.setNullable("false"); list = test.pipelinePossibleStates(neg, listOfMaps); Assert.assertEquals(list.size(), 3); }
public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); } }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList); }
NegativeBoundHiveDecimal extends BoundaryDecimal<NegativeBoundHiveDecimal.NegativeBoundHiveDecimalTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDecimalTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDecimalTag action,
                                                            List<Map<String, String>> possibleStateList);  }