mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
364bca150a
commit
f62867026b
@ -7,6 +7,8 @@ import cn.hutool.extra.ssh.Sftp;
|
|||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class FtpTest {
|
public class FtpTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -75,4 +77,17 @@ public class FtpTest {
|
|||||||
|
|
||||||
IoUtil.close(ftp);
|
IoUtil.close(ftp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void downloadTest() {
|
||||||
|
Ftp ftp = new Ftp("localhost");
|
||||||
|
|
||||||
|
List<String> fileNames = ftp.ls("temp/");
|
||||||
|
for(String name: fileNames) {
|
||||||
|
ftp.download("",
|
||||||
|
name,
|
||||||
|
FileUtil.file("d:/test/download/" + name));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user