@Test public void leapYearTest() { 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"); tag.setEarliest("2016-03-01"); tag.setLatest("2016-02-28"); List<Map<String, String>> newList = dateTest.pipelinePossibleStates(tag, listOfMaps); Assert.assertEquals(newList.get(0).get("name"), "2016-02-29"); Assert.assertEquals(newList.get(1).get("name"), "2016-02-29"); }
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);  }