@@ -0,0 +1,1259 @@
+package com.cronutils;%0A%0Aimport com.cronutils.mapper.CronMapper;%0Aimport com.cronutils.model.Cron;%0Aimport com.cronutils.model.CronType;%0Aimport com.cronutils.model.definition.CronDefinitionBuilder;%0Aimport com.cronutils.parser.CronParser;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0A%0Apublic class Issue499Test %7B%0A    /**%0A     * We want to convert Unix cron expressions to Quartz cron expressions. This is a known format we expect.%0A     * 9.1.3 Result:%0A     * java.lang.IllegalArgumentException: Failed to parse '12 1 * ? *'. Invalid expression: ?%0A     */%0A    @Test%0A    public void testCronExpressionForConversionToQuartz() %7B%0A        final CronParser unixParser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.UNIX));%0A        final CronMapper unixToQuartz = CronMapper.fromUnixToQuartz();%0A        String unixExpression = %2212 1 * ? *%22;%0A        // Works on 5.0.5, throws IllegalArgumentException in 9.1.3%0A        Cron unixCron = unixParser.parse(unixExpression);%0A        // Goal: Convert unix expressions to quartz.%0A        String quartzExpression = unixToQuartz.map(unixCron).asString();%0A        // This is what we expected.%0A        assertEquals(%220 12 1 * ? ? *%22, quartzExpression);%0A    %7D%0A%7D%0A

Test for https://github.com/jmrozanec/cron-utils/issues/499