mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
新增获取网卡IP地址方法的测试
This commit is contained in:
@@ -29,5 +29,11 @@ public class SystemUtilTest {
|
|||||||
OsInfo osInfo = SystemUtil.getOsInfo();
|
OsInfo osInfo = SystemUtil.getOsInfo();
|
||||||
Assert.assertNotNull(osInfo);
|
Assert.assertNotNull(osInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getHostInfo() {
|
||||||
|
HostInfo hostInfo = SystemUtil.getHostInfo();
|
||||||
|
Assert.assertNotNull(hostInfo);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user