public abstract class CronExpressionDayOfMonthTest extends AbstractCronExpressionTest
cronFactory| Modifier | Constructor and Description |
|---|---|
protected |
CronExpressionDayOfMonthTest(CronFactory cronFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
testClosestWeekdayToDayOfMonth() |
void |
testClosestWeekdayToOffsetFromLastDayOfMonth() |
void |
testLastDayOfMonth() |
void |
testLastWeekdayOfMonth() |
void |
testNearestWeekdayToLastDayOfMonthEdgeCase()
Quartz fails the test for this edge case.
|
void |
testOffsetFromLastDayOfMonth() |
assertCron, assertQuartzBug, assertRunTimes, assertRunTimes, generateNextRunTimesprotected CronExpressionDayOfMonthTest(CronFactory cronFactory)
public void testLastDayOfMonth()
public void testLastWeekdayOfMonth()
public void testClosestWeekdayToDayOfMonth()
public void testNearestWeekdayToLastDayOfMonthEdgeCase()
Given:
nW, where n is 29, 30, or
31; andn-1 days; and"0 0 0 29W * ?",
Fri 2014-02-28 should not match, because 2014-02-29 does not exist. Quartz, however,
calls this a match. It says the same thing about Fri 2010/04/30 for the 31W case.public void testClosestWeekdayToOffsetFromLastDayOfMonth()
public void testOffsetFromLastDayOfMonth()
Copyright © 2017 Atlassian. All rights reserved.