qggwy
3 years ago
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||||
|
package com.insigma.utils; |
||||
|
|
||||
|
|
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.junit.Test; |
||||
|
|
||||
|
import java.io.File; |
||||
|
|
||||
|
import static org.junit.jupiter.api.Assertions.*; |
||||
|
|
||||
|
@Slf4j |
||||
|
public class LinuxCommandUtilTest { |
||||
|
|
||||
|
@Test |
||||
|
public void run() { |
||||
|
// 注意:该部分需要注意使用的分割线 下划线-
|
||||
|
String dir = "/Users/zhangxianwei/Downloads/ccc"; |
||||
|
new LinuxCommandUtil("mkdir " + dir).run(); |
||||
|
File file = new File(dir); |
||||
|
assertTrue(file.exists()); |
||||
|
log.info("测试完成!"); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue