1 package com.atlassian.scheduler.quartz1;
2
3 import com.atlassian.scheduler.core.tests.CronExpressionDayOfMonthTest;
4 import org.junit.Ignore;
5 import org.junit.Test;
6
7 import static com.atlassian.scheduler.core.tests.CronExpressionAssertions.unsatisfiedBy;
8
9
10
11
12 public class Quartz1CronExpressionDayOfMonthTest extends CronExpressionDayOfMonthTest {
13 public Quartz1CronExpressionDayOfMonthTest() {
14 super(new Quartz1CronFactory());
15 }
16
17 @Override
18 @Test
19 public void testNearestWeekdayToLastDayOfMonthEdgeCase() {
20 assertQuartzBug("Edge case - 2014/28/02 and 29W", "0 0 0 29W * ?", unsatisfiedBy(0, 0, 0, 28, 2, 2014));
21 assertQuartzBug("Edge case - 2010/04/30 and 31W", "0 0 0 31W * ?", unsatisfiedBy(0, 0, 0, 30, 4, 2010));
22 }
23
24 @Ignore
25 @Override
26 @Test
27 public void testOffsetFromLastDayOfMonth() {
28 System.err.println("This feature is not supported in Quartz 1.x");
29 }
30
31 @Ignore
32 @Override
33 @Test
34 public void testClosestWeekdayToOffsetFromLastDayOfMonth() {
35 System.err.println("This feature is not supported in Quartz 1.x");
36 }
37 }