Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrozanec committed Nov 21, 2020
1 parent d9b957c commit 7b55335
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ public void setUp() {
parser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.SPRING));
}

/**
* The example is adapted from: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/support/CronExpression.html
*/
@Test
public void testSpringCronSupportNthDayOfWeek(){
CronExpression.parse("0 0 0 ? * WED#2");
parser.parse("0 0 0 ? * WED#2");
CronExpression.parse("0 0 0 ? * FRI#1");
parser.parse("0 0 0 ? * FRI#1");
}

}

0 comments on commit 7b55335

Please sign in to comment.