1 package com.atlassian.scheduler.quartz2;
2
3 import com.atlassian.scheduler.core.tests.CronExpressionDayOfMonthTest;
4 import org.junit.Test;
5
6 import static com.atlassian.scheduler.core.tests.CronExpressionAssertions.unsatisfiedBy;
7
8
9
10
11 public class Quartz2CronExpressionDayOfMonthTest extends CronExpressionDayOfMonthTest {
12 public Quartz2CronExpressionDayOfMonthTest() {
13 super(new Quartz2CronFactory());
14 }
15
16 @Override
17 @Test
18 public void testNearestWeekdayToLastDayOfMonthEdgeCase() {
19 assertQuartzBug("Edge case - 2014/28/02 and 29W", "0 0 0 29W * ?", unsatisfiedBy(0, 0, 0, 28, 2, 2014));
20 assertQuartzBug("Edge case - 2010/04/30 and 31W", "0 0 0 31W * ?", unsatisfiedBy(0, 0, 0, 30, 4, 2010));
21 }
22 }