Initial implementation of Cron format parser
This commit is contained in:
parent
f9dc882c1c
commit
d6e5bd2b65
3 changed files with 77 additions and 2 deletions
29
test/zutil/CronTimerTest.java
Executable file
29
test/zutil/CronTimerTest.java
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
package zutil;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class CronTimerTest {
|
||||
|
||||
@Test
|
||||
public void getRange() throws Exception {
|
||||
// invalid numbers
|
||||
assertEquals(Collections.EMPTY_LIST, CronTimer.getRange(""));
|
||||
assertEquals(Collections.EMPTY_LIST, CronTimer.getRange(null));
|
||||
|
||||
// ranges
|
||||
//assertEquals(Arrays.asList(0,1), CronTimer.getRange("0-1"));
|
||||
|
||||
// intervals
|
||||
|
||||
// range and interval
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue