@Test public void lowerBoundTest2() { Map<String, String> variableDomains = new HashMap<>(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); NegativeBoundHiveDate dateTest = new NegativeBoundHiveDate(); NegativeBoundHiveDate.NegativeBoundHiveDateTag tag = new NegativeBoundHiveDate.NegativeBoundHiveDateTag(); tag.setName("name"); Calendar nextDate = Calendar.getInstance(); nextDate.add(Calendar.DATE, +1); String next = new SimpleDateFormat("yyyy-MM-dd").format(nextDate.getTime()); String day = next.substring(8, 10); String month = next.substring(5, 7); String year = next.substring(0, 4); List<Map<String, String>> newList = dateTest.pipelinePossibleStates(tag, listOfMaps); Assert.assertEquals(newList.get(0).get("name"), "1969-12-31"); Assert.assertEquals(newList.get(1).get("name"), next); Assert.assertEquals(newList.get(2).get("name"), month + "-" + day + "-" + year); }
public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }
NegativeBoundHiveDate extends BoundaryDate<NegativeBoundHiveDate.NegativeBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); } }
NegativeBoundHiveDate extends BoundaryDate<NegativeBoundHiveDate.NegativeBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  }
NegativeBoundHiveDate extends BoundaryDate<NegativeBoundHiveDate.NegativeBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDateTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList); }
NegativeBoundHiveDate extends BoundaryDate<NegativeBoundHiveDate.NegativeBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, false)); }  Class<NegativeBoundHiveDateTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(NegativeBoundHiveDateTag action, List<Map<String, String>> possibleStateList);  }