mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
ZoneUtilTest 完善
This commit is contained in:
parent
d9d8ad0d62
commit
39a618ff10
@ -0,0 +1,16 @@
|
|||||||
|
package cn.hutool.core.date;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.time.ZoneId;
|
||||||
|
import java.util.TimeZone;
|
||||||
|
|
||||||
|
public class ZoneUtilTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
Assert.assertEquals(ZoneId.systemDefault(), ZoneUtil.toZoneId(null));
|
||||||
|
Assert.assertEquals(TimeZone.getDefault(), ZoneUtil.toTimeZone(null));
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user