@Test public void shouldReturnTrueWhenPeriodIsBeforeCurrent() { Period periodBefore = new Period(DateTime.parse("2017-08-12")); LMISTestApp.getInstance().setCurrentTimeMillis(DateTime.parse("2017-09-12").getMillis()); assertThat(periodBefore.isOpenToRequisitions(), is(true)); }
public boolean isOpenToRequisitions() { return isOpenForCurrentDate() || isBeforeCurrent(); }
Period implements Serializable { public boolean isOpenToRequisitions() { return isOpenForCurrentDate() || isBeforeCurrent(); } }
Period implements Serializable { public boolean isOpenToRequisitions() { return isOpenForCurrentDate() || isBeforeCurrent(); } Period(DateTime dateTime);  Period(DateTime begin, DateTime end); }
Period implements Serializable { public boolean isOpenToRequisitions() { return isOpenForCurrentDate() || isBeforeCurrent(); } Period(DateTime dateTime);  Period(DateTime begin, DateTime end); static Period of(Date date); static Period generateForTraining(Date date); DateTime getBegin(); DateTime getInventoryBegin(); DateTime getInventoryEnd(); DateTime getEnd(); Period previous(); static boolean isWithinSubmissionWindow(DateTime date); String toString(); Period next(); Optional<Period> generateNextAvailablePeriod(); boolean isOpenToRequisitions(); DateTime getOpeningRequisitionDate(); @Override boolean equals(Object object); @Override int hashCode(); }
Period implements Serializable { public boolean isOpenToRequisitions() { return isOpenForCurrentDate() || isBeforeCurrent(); } Period(DateTime dateTime);  Period(DateTime begin, DateTime end); static Period of(Date date); static Period generateForTraining(Date date); DateTime getBegin(); DateTime getInventoryBegin(); DateTime getInventoryEnd(); DateTime getEnd(); Period previous(); static boolean isWithinSubmissionWindow(DateTime date); String toString(); Period next(); Optional<Period> generateNextAvailablePeriod(); boolean isOpenToRequisitions(); DateTime getOpeningRequisitionDate(); @Override boolean equals(Object object); @Override int hashCode(); static final int BEGIN_DAY; static final int END_DAY; static final int INVENTORY_TRAINING_BEGIN_DAY; static final int INVENTORY_TRAINING_END_DAY_NEXT; static final int INVENTORY_BEGIN_DAY; static final int INVENTORY_END_DAY_NEXT; static final int DEFAULT_INVENTORY_DAY; }