DateConstraint { public DateConstraint nextWeekDay() { return new WeekDayDateConstraint(this, 1); } DateConstraint(); static DateConstraint of(final LocalDate date); DateConstraint previousWeekDay(); DateConstraint nextWeekDay(); DateConstraint plus(final Period period); DateConstraint minus(final Period period); DateConstraint minus(final String period); Period periodUntil(final DateConstraint other); @Override abstract String toString(); static DateConstraint parse(final String str); static LocalDate evaluate(final FunctionExecutionContext context, final String str); static final DateConstraint NULL; static final DateConstraint VALUATION_TIME; }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testNull_nextWeekDay() { DateConstraint.NULL.nextWeekDay(); }