Skip to content
Permalink
Browse files

Merge pull request #378 from robryals/master

Added test for Issue #375 - IllegalArgumentException for Last Day of …
  • Loading branch information...
jmrozanec committed May 28, 2019
2 parents 0b12296 + 624e03f commit d9f2a92d98d12492348d486b10bb06f65a22cc1d
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/test/java/com/cronutils/parser/CronParserQuartzIntegrationTest.java
@@ -327,4 +327,15 @@ public void testErrorAboutMissingSteps() {
thrown.expectMessage("Missing steps for expression: */");
assertNotNull(ExecutionTime.forCron(parser.parse("*/ * * * * ?")));
}

/**
* Issue #375: Quartz Last Day of Week pattern does not support Day of Week as text
* https://github.com/jmrozanec/cron-utils/issues/375
*/
@Test
public void testLastDayOfWeek() {
final String cronExpression = "0 0 1 ? 1/1 MONL *";
final CronParser quartzCronParser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.QUARTZ));
quartzCronParser.parse(cronExpression);
}
}

0 comments on commit d9f2a92

Please sign in to comment.
You can’t perform that action at this time.