You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cron1 = parser.parse("0 0 9-17 * * MON-FRI");//on the hour nine-to-five weekdays -> 9 executions per day, five times a week -> 45 executions per week
32
+
cron2 = parser.parse("0 0/30 8-10 * * *");//8:00, 8:30, 9:00, 9:30, 10:00 and 10:30 every day -> six executions per day, seven times a week -> 42 executions per week
33
+
}
34
+
35
+
@Test
36
+
publicvoidcompareMoreFrequent() {
37
+
assertTrue(comparator.compare(cron1, cron2)>0);
38
+
}
39
+
40
+
@Test
41
+
publicvoidcompareLessFrequent() {
42
+
assertTrue(comparator.compare(cron2, cron1)<0);
43
+
}
44
+
45
+
@Test
46
+
publicvoidcompareEqualFrequent() {
47
+
Croncronx = parser.parse("0 0 9-17 * * MON-FRI");//on the hour nine-to-five weekdays -> 9 executions per day, five times a week -> 45 executions per week
0 commit comments