Skip to content

Commit ab4b346

Browse files
committed
Reinstantiate test for #499
1 parent ccbc55b commit ab4b346

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/test/java/com/cronutils/Issue499Test.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
import com.cronutils.parser.CronParser;
1010

1111
import org.junit.jupiter.api.Disabled;
12-
import org.junit.jupiter.api.Test;
13-
12+
import org.junit.Test;
1413

1514
class 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();

0 commit comments

Comments
 (0)