mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
pr#124
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package cn.hutool.system;
|
||||
|
||||
import cn.hutool.system.oshi.CpuInfo;
|
||||
import cn.hutool.system.oshi.OshiUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.system.oshi.OshiUtil;
|
||||
|
||||
public class OshiTest {
|
||||
|
||||
@Test
|
||||
@@ -12,4 +12,10 @@ public class OshiTest {
|
||||
long total = OshiUtil.getMemory().getTotal();
|
||||
Assert.assertTrue(total > 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getCupInfo() {
|
||||
CpuInfo cpuInfo = OshiUtil.getCpuInfo();
|
||||
Assert.assertNotNull(cpuInfo);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user