mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 10:09:06 +08:00
add test
This commit is contained in:
parent
7f3dba9916
commit
c31b985d04
@ -46,8 +46,14 @@ public class RuntimeUtilTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getProcessorCountTest(){
|
public void getProcessorCountTest(){
|
||||||
int cpu = RuntimeUtil.getProcessorCount();
|
final int cpu = RuntimeUtil.getProcessorCount();
|
||||||
Console.log("cpu个数:{}", cpu);
|
|
||||||
Assertions.assertTrue(cpu > 0);
|
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