File tree Expand file tree Collapse file tree
src/test/java/com/cronutils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .cronutils ;
22
3- import com .cronutils .model .Cron ;
43import com .cronutils .model .CronType ;
54import com .cronutils .model .definition .CronDefinitionBuilder ;
65import com .cronutils .parser .CronParser ;
@@ -14,13 +13,12 @@ public class Issue413Test {
1413 @ Test
1514 public void testFridayToSaturdayQuartz () {
1615 final CronParser parser = new CronParser (CronDefinitionBuilder .instanceDefinitionFor (CronType .UNIX ));
17- final Cron quartzCron = parser .parse ("* * * */12 *" );
1816 try {
19- quartzCron . validate ( );
17+ parser . parse ( "* * * */12 *" );
2018 // expected to fail.
2119 fail ();
2220 } catch (IllegalArgumentException expected ) {
23- assertEquals ("Failed to parse '* * * */12 *'. Period 12 not in range ( 1, 12] " , expected .getMessage ());
21+ assertEquals ("Failed to parse '* * * */12 *'. Period 12 not in range [ 1, 12) " , expected .getMessage ());
2422 }
2523 }
2624}
You can’t perform that action at this time.
0 commit comments