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:
@@ -49,10 +49,10 @@ public class DateUtilTest {
|
||||
Assert.assertNotNull(date3);
|
||||
|
||||
// 当前日期字符串,格式:yyyy-MM-dd HH:mm:ss
|
||||
String now = DateUtil.now();
|
||||
String now = DateUtil.formatNow();
|
||||
Assert.assertNotNull(now);
|
||||
// 当前日期字符串,格式:yyyy-MM-dd
|
||||
String today = DateUtil.today();
|
||||
String today = DateUtil.formatToday();
|
||||
Assert.assertNotNull(today);
|
||||
}
|
||||
|
||||
|
@@ -27,10 +27,10 @@ public class ConcurrencyTesterTest {
|
||||
Console.log("开始执行第{}个",i);
|
||||
ct.test(() -> {
|
||||
// 需要并发测试的业务代码
|
||||
Console.log("当前执行线程:" + Thread.currentThread().getName()+" 产生时间 "+ DateUtil.now());
|
||||
Console.log("当前执行线程:" + Thread.currentThread().getName()+" 产生时间 "+ DateUtil.formatNow());
|
||||
ThreadUtil.sleep(RandomUtil.randomInt(1000, 3000));
|
||||
});
|
||||
}
|
||||
Console.log("全部线程执行完毕 "+DateUtil.now());
|
||||
Console.log("全部线程执行完毕 "+DateUtil.formatNow());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user