mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
7f3dba9916
commit
c31b985d04
@ -46,8 +46,14 @@ public class RuntimeUtilTest {
|
||||
|
||||
@Test
|
||||
public void getProcessorCountTest(){
|
||||
int cpu = RuntimeUtil.getProcessorCount();
|
||||
Console.log("cpu个数:{}", cpu);
|
||||
final int cpu = RuntimeUtil.getProcessorCount();
|
||||
Assertions.assertTrue(cpu > 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
void pingTest() {
|
||||
final String s = RuntimeUtil.execForStr("cmd /c ping " + "hutool.cn");
|
||||
Console.log(s);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user