@Test(expected = IllegalArgumentException.class) public void test_two_year_barrier() throws Exception { new CronExpression("* * * 29 2 *").nextTimeAfter(new DateTime(2012, 3, 1, 00, 00), 1000 * 60 * 60 * 24 * 356 * 2); }
public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } }
CronExpression { public DateTime nextTimeAfter(DateTime afterTime) { return nextTimeAfter(afterTime, afterTime.plusYears(4)); } CronExpression(final String expr);  CronExpression(final String expr, final boolean withSeconds); }
CronExpression { public DateTime nextTimeAfter(DateTime 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); DateTime nextTimeAfter(DateTime afterTime); DateTime nextTimeAfter(DateTime afterTime, long durationInMillis); DateTime nextTimeAfter(DateTime afterTime, DateTime dateTimeBarrier); @Override String toString(); }
CronExpression { public DateTime nextTimeAfter(DateTime 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); DateTime nextTimeAfter(DateTime afterTime); DateTime nextTimeAfter(DateTime afterTime, long durationInMillis); DateTime nextTimeAfter(DateTime afterTime, DateTime dateTimeBarrier); @Override String toString();  }