HomeSort by relevance Sort by last modified time
    Searched refs:ftpClient (Results 1 - 12 of 12) sorted by null

  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/stub/
StubFtpServer_RestartTest.groovy 19 import org.apache.commons.net.ftp.FTPClient
32 private ftpClient
36 ftpClient.connect(SERVER, PortTestUtil.getFtpServerControlPort())
37 assert ftpClient.changeWorkingDirectory("dir1")
43 ftpClient.connect(SERVER, PortTestUtil.getFtpServerControlPort())
44 assert ftpClient.changeWorkingDirectory("dir1")
51 ftpClient = new FTPClient()
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/example/
RemoteFile.java 18 import org.apache.commons.net.ftp.FTPClient;
39 FTPClient ftpClient = new FTPClient();
40 ftpClient.connect(server, port);
41 ftpClient.login(USERNAME, PASSWORD);
44 boolean success = ftpClient.retrieveFile(filename, outputStream);
45 ftpClient.disconnect();
SpringConfigurationTest.java 18 import org.apache.commons.net.ftp.FTPClient;
40 private FTPClient ftpClient;
48 ftpClient.connect(SERVER, PORT);
51 String dir = ftpClient.printWorkingDirectory();
55 FTPFile[] files = ftpClient.listFiles();
61 assertFalse("DELE", ftpClient.deleteFile("AnyFile.txt"));
65 assertTrue(ftpClient.retrieveFile("SomeFile.txt", outputStream));
78 ftpClient = new FTPClient();
    [all...]
FtpWorkingDirectory.java 18 import org.apache.commons.net.ftp.FTPClient;
42 FTPClient ftpClient = new FTPClient();
43 ftpClient.connect(server, port);
44 return ftpClient.printWorkingDirectory();
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/
StubFtpServerIntegrationTest.java 19 import org.apache.commons.net.ftp.FTPClient;
53 private FTPClient ftpClient;
70 boolean success = ftpClient.login(USERNAME, PASSWORD);
79 ftpClient.quit();
87 int replyCode = ftpClient.acct("123456");
107 String help = ftpClient.listHelp();
124 FTPFile[] files = ftpClient.listFiles();
137 ftpClient.enterLocalPassiveMode();
144 FTPFile[] files = ftpClient.listFiles();
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/example/
SpringConfigurationTest.java 20 import org.apache.commons.net.ftp.FTPClient;
39 private FTPClient ftpClient;
47 ftpClient.connect(SERVER, PORT);
50 String dir = ftpClient.printWorkingDirectory();
54 FTPFile[] files = ftpClient.listFiles();
60 assertFalse("DELE", ftpClient.deleteFile("AnyFile.txt"));
64 assertTrue(ftpClient.retrieveFile("SomeFile.txt", outputStream));
77 ftpClient = new FTPClient();
    [all...]
FtpWorkingDirectory.java 21 import org.apache.commons.net.ftp.FTPClient;
42 FTPClient ftpClient = new FTPClient();
43 ftpClient.connect(server, port);
44 return ftpClient.printWorkingDirectory();
RemoteFile.java 22 import org.apache.commons.net.ftp.FTPClient;
38 FTPClient ftpClient = new FTPClient();
39 ftpClient.connect(server, port);
42 boolean success = ftpClient.retrieveFile(filename, outputStream);
43 ftpClient.disconnect();
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/
StubFtpServerIntegrationTest.java 24 import org.apache.commons.net.ftp.FTPClient;
65 private FTPClient ftpClient;
85 boolean success = ftpClient.login(USERNAME, PASSWORD);
91 ftpClient.quit();
102 int replyCode = ftpClient.acct("123456");
125 String help = ftpClient.listHelp();
142 FTPFile[] files = ftpClient.listFiles();
155 ftpClient.enterLocalPassiveMode();
162 FTPFile[] files = ftpClient.listFiles();
    [all...]
StubFtpServer_StartTest.java 18 import org.apache.commons.net.ftp.FTPClient;
72 FTPClient ftpClient = new FTPClient();
73 ftpClient.connect(SERVER, SERVER_CONTROL_PORT);
75 assertEquals("pwd", DIR, ftpClient.printWorkingDirectory());
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/
FakeFtpServerIntegrationTest.groovy 19 import org.apache.commons.net.ftp.FTPClient
59 private FTPClient ftpClient
69 assert ftpClient.abort()
75 assert ftpClient.acct(ACCOUNT) == 230
80 assert ftpClient.allocate(99)
92 assert ftpClient.appendFile(FILE1, inputStream)
100 assert ftpClient.changeToParentDirectory()
106 assert ftpClient.changeWorkingDirectory(SUBDIR_NAME)
115 assert ftpClient.changeWorkingDirectory("..")
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/server/
AbstractFtpServer_StartTestCase.java 18 import org.apache.commons.net.ftp.FTPClient;
61 FTPClient ftpClient = new FTPClient();
62 ftpClient.connect(SERVER, SERVER_CONTROL_PORT);

Completed in 426 milliseconds