mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change method name
This commit is contained in:
@@ -7,12 +7,12 @@ import cn.hutool.core.util.IdUtil;
|
||||
|
||||
/**
|
||||
* 测试定时任务,当触发到定时的时间点时,执行doTest方法
|
||||
*
|
||||
*
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
public class TestJob {
|
||||
|
||||
|
||||
private final String jobId = IdUtil.simpleUUID();
|
||||
|
||||
/**
|
||||
@@ -20,7 +20,7 @@ public class TestJob {
|
||||
*/
|
||||
public void doTest() {
|
||||
// String name = Thread.currentThread().getName();
|
||||
Console.log("Test Job {} running... at {}", jobId, DateUtil.now());
|
||||
Console.log("Test Job {} running... at {}", jobId, DateUtil.formatNow());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -17,7 +17,7 @@ public class CronPatternTest {
|
||||
CronPattern pattern;
|
||||
// 任何时间匹配
|
||||
pattern = CronPattern.of("* * * * * *");
|
||||
assertMatch(pattern, DateUtil.now());
|
||||
assertMatch(pattern, DateUtil.formatNow());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user