Skip to content

Commit

Permalink
Reinstantiate test for #499
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrozanec committed Jul 16, 2022
1 parent ccbc55b commit ab4b346
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/com/cronutils/Issue499Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
import com.cronutils.parser.CronParser;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import org.junit.Test;

class Issue499Test {
/**
* We want to convert Unix cron expressions to Quartz cron expressions. This is
* a known format we expect. 9.1.3 Result: java.lang.IllegalArgumentException:
* We want to convert Unix cron expressions to Quartz cron expressions. We
* expect an exception: java.lang.IllegalArgumentException:
* Failed to parse '12 1 * ? *'. Invalid expression: ?
* Given question marks are not supported at Unix crons. See:
* https://github.com/jmrozanec/cron-utils/issues/499
*/
@Test
@Disabled("as the comment states obviously broken since cronUtils version 9.1.3")
@Test(expected = IllegalArgumentException.class)
void testCronExpressionForConversionToQuartz() {
final CronParser unixParser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.UNIX));
final CronMapper unixToQuartz = CronMapper.fromUnixToQuartz();
Expand Down

0 comments on commit ab4b346

Please sign in to comment.