mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add OshiUtil
This commit is contained in:
15
hutool-system/src/test/java/cn/hutool/system/OshiTest.java
Normal file
15
hutool-system/src/test/java/cn/hutool/system/OshiTest.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package cn.hutool.system;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.system.oshi.OshiUtil;
|
||||
|
||||
public class OshiTest {
|
||||
|
||||
@Test
|
||||
public void getMemeryTest() {
|
||||
long total = OshiUtil.getMemory().getTotal();
|
||||
Assert.assertTrue(total > 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user