This commit is contained in:
Looly
2022-03-27 23:08:45 +08:00
parent 7385fe937d
commit 8177848a47
4 changed files with 10 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ public class CronPatternNextMatchTest {
CronPattern pattern = new CronPattern("23 12 * 12 * * *");
//noinspection ConstantConditions
final Calendar calendar = pattern.nextMatchAfter(
DateUtil.parse("2022-04-12 09:12:12").toCalendar());
DateUtil.parse("2022-04-12 09:12:24").toCalendar());
Console.log(DateUtil.date(calendar));
Assert.assertTrue(pattern.match(calendar, true));