View Javadoc

1   package com.atlassian.scheduler.quartz1;
2   
3   import com.atlassian.scheduler.core.tests.QuartzCronExpressionValidatorTest;
4   import org.junit.Before;
5   import org.junit.Test;
6   
7   /**
8    * @since v1.4
9    */
10  public class Quartz1CronExpressionValidatorTest extends QuartzCronExpressionValidatorTest {
11      @Before
12      public void setUp() {
13          validator = new Quartz1CronExpressionValidator();
14      }
15  
16      // Unsupported in Quartz 1.x
17      @Override
18      @Test
19      public void testLastFlagWithHyphenW() {
20          assertInvalidFlagL("0 0 0 L-W 1 ?", 6);
21      }
22  
23      // Unsupported in Quartz 1.x
24      @Override
25      @Test
26      public void testSupportForLastMinusNumberForDayOfMonth() {
27          assertInvalidFlagL("0 0 0 L-3 1 ?", 6);
28          assertInvalidFlagL("0 0 0 L-4W 1 ?", 6);
29      }
30  }
31