@Test public void leapYearTest() { Map<String, String> variableDomains = new HashMap<>(); List<Map<String, String>> listOfMaps = new LinkedList<>(); listOfMaps.add(variableDomains); PositiveBoundHiveDate dateTest = new PositiveBoundHiveDate(); PositiveBoundHiveDate.PositiveBoundHiveDateTag tag = new PositiveBoundHiveDate.PositiveBoundHiveDateTag(); tag.setName("name"); tag.setEarliest("2016-02-28"); tag.setLatest("2016-03-01"); List<Map<String, String>> newList = dateTest.pipelinePossibleStates(tag, listOfMaps); Assert.assertEquals(newList.get(0).get("name"), "2016-02-28"); Assert.assertEquals(newList.get(1).get("name"), "2016-02-29"); Assert.assertEquals(newList.get(2).get("name"), "2016-02-29"); Assert.assertEquals(newList.get(3).get("name"), "2016-03-01"); }
public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }
PositiveBoundHiveDate extends BoundaryDate<PositiveBoundHiveDate.PositiveBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); } }
PositiveBoundHiveDate extends BoundaryDate<PositiveBoundHiveDate.PositiveBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  }
PositiveBoundHiveDate extends BoundaryDate<PositiveBoundHiveDate.PositiveBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  Class<PositiveBoundHiveDateTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action,
                                                            List<Map<String, String>> possibleStateList); }
PositiveBoundHiveDate extends BoundaryDate<PositiveBoundHiveDate.PositiveBoundHiveDateTag> { public List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action, List<Map<String, String>> possibleStateList) { return returnStates(action, possibleStateList, setParameters(action, true)); }  Class<PositiveBoundHiveDateTag> getTagActionClass(); String getTagName(); String getTagNameSpace(); List<Map<String, String>> pipelinePossibleStates(PositiveBoundHiveDate.PositiveBoundHiveDateTag action,
                                                            List<Map<String, String>> possibleStateList);  }