Browse Source

新增获取网卡IP地址方法的测试

lxd 6 years ago
parent
commit
a37354299a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      hutool-system/src/test/java/cn/hutool/system/SystemUtilTest.java

+ 6 - 0
hutool-system/src/test/java/cn/hutool/system/SystemUtilTest.java

@@ -29,5 +29,11 @@ public class SystemUtilTest {
 		OsInfo osInfo = SystemUtil.getOsInfo();
 		Assert.assertNotNull(osInfo);
 	}
+
+	@Test
+	public void getHostInfo() {
+		HostInfo hostInfo = SystemUtil.getHostInfo();
+		Assert.assertNotNull(hostInfo);
+	}
 	
 }