This commit is contained in:
Looly
2022-04-12 14:06:24 +08:00
parent 3489cb285c
commit ca1563ee34
7 changed files with 67 additions and 59 deletions

View File

@@ -37,4 +37,10 @@ public class RuntimeUtilTest {
public void getUsableMemoryTest(){
Assert.assertTrue(RuntimeUtil.getUsableMemory() > 0);
}
@Test
public void getPidTest(){
int pid = RuntimeUtil.getPid();
Assert.assertTrue(pid > 0);
}
}