提交 58442bcb authored 作者: Thomas Mueller's avatar Thomas Mueller

Test

上级 e31965cf
...@@ -34,9 +34,9 @@ public class TestFtp extends TestBase implements FtpEventListener { ...@@ -34,9 +34,9 @@ public class TestFtp extends TestBase implements FtpEventListener {
if (getBaseDir().indexOf(':') > 0) { if (getBaseDir().indexOf(':') > 0) {
return; return;
} }
FileUtils.delete(getBaseDir() + "/test"); FileUtils.delete(getBaseDir() + "/ftp");
test(getBaseDir()); test(getBaseDir());
FileUtils.delete(getBaseDir() + "/test"); FileUtils.delete(getBaseDir() + "/ftp");
} }
private void test(String dir) throws Exception { private void test(String dir) throws Exception {
...@@ -45,8 +45,8 @@ public class TestFtp extends TestBase implements FtpEventListener { ...@@ -45,8 +45,8 @@ public class TestFtp extends TestBase implements FtpEventListener {
ftp.setEventListener(this); ftp.setEventListener(this);
FtpClient client = FtpClient.open("localhost:8121"); FtpClient client = FtpClient.open("localhost:8121");
client.login("sa", "sa"); client.login("sa", "sa");
client.makeDirectory("test"); client.makeDirectory("ftp");
client.changeWorkingDirectory("test"); client.changeWorkingDirectory("ftp");
assertEquals("CWD", lastEvent.getCommand()); assertEquals("CWD", lastEvent.getCommand());
client.makeDirectory("hello"); client.makeDirectory("hello");
client.changeWorkingDirectory("hello"); client.changeWorkingDirectory("hello");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论