File tree Expand file tree Collapse file tree
src/test/java/com/cronutils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import com .cronutils .parser .CronParser ;
1010
1111import org .junit .jupiter .api .Disabled ;
12- import org .junit .jupiter .api .Test ;
13-
12+ import org .junit .Test ;
1413
1514class Issue499Test {
1615 /**
17- * We want to convert Unix cron expressions to Quartz cron expressions. This is
18- * a known format we expect. 9.1.3 Result : java.lang.IllegalArgumentException:
16+ * We want to convert Unix cron expressions to Quartz cron expressions. We
17+ * expect an exception : java.lang.IllegalArgumentException:
1918 * Failed to parse '12 1 * ? *'. Invalid expression: ?
19+ * Given question marks are not supported at Unix crons. See:
20+ * https://github.com/jmrozanec/cron-utils/issues/499
2021 */
21- @ Test
22- @ Disabled ("as the comment states obviously broken since cronUtils version 9.1.3" )
22+ @ Test (expected = IllegalArgumentException .class )
2323 void testCronExpressionForConversionToQuartz () {
2424 final CronParser unixParser = new CronParser (CronDefinitionBuilder .instanceDefinitionFor (CronType .UNIX ));
2525 final CronMapper unixToQuartz = CronMapper .fromUnixToQuartz ();
You can’t perform that action at this time.
0 commit comments