@Test(expected = IllegalArgumentException.class) public void test_one_year_barrier() throws Exception { ZonedDateTime after = ZonedDateTime.of(2012, 3, 1, 0, 0, 0, 0, zoneId); ZonedDateTime barrier = ZonedDateTime.of(2013, 3, 1, 0, 0, 0, 0, zoneId); new CronExpression("* * * 29 2 *").nextTimeAfter(after, barrier); }
public ZonedDateTime nextTimeAfter(ZonedDateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); }
CronExpression { public ZonedDateTime nextTimeAfter(ZonedDateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } }
CronExpression { public ZonedDateTime nextTimeAfter(ZonedDateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); }
CronExpression { public ZonedDateTime nextTimeAfter(ZonedDateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); static CronExpression create(final String expr); static CronExpression createWithoutSeconds(final String expr); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime); LocalDateTime nextLocalDateTimeAfter(LocalDateTime dateTime); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime, long durationInMillis); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime, ZonedDateTime dateTimeBarrier); @Override String toString(); }
CronExpression { public ZonedDateTime nextTimeAfter(ZonedDateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); static CronExpression create(final String expr); static CronExpression createWithoutSeconds(final String expr); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime); LocalDateTime nextLocalDateTimeAfter(LocalDateTime dateTime); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime, long durationInMillis); ZonedDateTime nextTimeAfter(ZonedDateTime afterTime, ZonedDateTime dateTimeBarrier); @Override String toString();  }