mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add methods
This commit is contained in:
21
hutool-cron/src/test/java/cn/hutool/cron/TaskTableTest.java
Normal file
21
hutool-cron/src/test/java/cn/hutool/cron/TaskTableTest.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package cn.hutool.cron;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.cron.pattern.CronPattern;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class TaskTableTest {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void toStringTest(){
|
||||
final TaskTable taskTable = new TaskTable();
|
||||
taskTable.add(IdUtil.fastUUID(), new CronPattern("*/10 * * * * *"), ()-> Console.log("Task 1"));
|
||||
taskTable.add(IdUtil.fastUUID(), new CronPattern("*/20 * * * * *"), ()-> Console.log("Task 2"));
|
||||
taskTable.add(IdUtil.fastUUID(), new CronPattern("*/30 * * * * *"), ()-> Console.log("Task 3"));
|
||||
|
||||
Console.log(taskTable);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user