change method name

This commit is contained in:
Looly
2022-04-28 01:59:51 +08:00
parent af1d615ca9
commit dca95552a8
12 changed files with 58 additions and 225 deletions

View File

@@ -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());
}
/**

View File

@@ -17,7 +17,7 @@ public class CronPatternTest {
CronPattern pattern;
// 任何时间匹配
pattern = CronPattern.of("* * * * * *");
assertMatch(pattern, DateUtil.now());
assertMatch(pattern, DateUtil.formatNow());
}
@Test