add OshiUtil

This commit is contained in:
Looly
2019-08-28 18:50:50 +08:00
parent f4a5b8b9b7
commit f8d3e3fb14
6 changed files with 145 additions and 5 deletions

View 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);
}
}