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

  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/stub/
StubFtpServer_RestartTest.groovy 23 * Integration tests for restart of an StubFtpServer.
31 private stubFtpServer
35 stubFtpServer.start()
39 stubFtpServer.stop()
42 stubFtpServer.start()
49 stubFtpServer = new StubFtpServer()
50 stubFtpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort())
56 stubFtpServer.stop()
RunStubFtpServer.groovy 18 import org.mockftpserver.stub.StubFtpServer
24 * Run the StubFtpServer with a minimal configuration for interactive testing and exploration.
33 def stubFtpServer = new StubFtpServer();
34 stubFtpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort());
36 stubFtpServer.getCommandHandler(CommandNames.PWD).setDirectory("/MyDir");
39 stubFtpServer.getCommandHandler(CommandNames.LIST).setDirectoryListing(LISTING)
41 stubFtpServer.start();
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/
StubFtpServer_StartTest.java 20 import org.mockftpserver.stub.StubFtpServer;
26 * Tests for StubFtpServer that require the StubFtpServer thread to be started.
36 private StubFtpServer stubFtpServer;
39 * Test the start() and stop() methods. Start the StubFtpServer and then stop it immediately.
42 stubFtpServer = new StubFtpServer();
43 stubFtpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort());
44 assertEquals("started - before", false, stubFtpServer.isStarted());
    [all...]
StubFtpServerTest.java 29 import org.mockftpserver.stub.StubFtpServer;
35 * Unit tests for StubFtpServer. Also see {@link StubFtpServer_StartTest}
46 private StubFtpServer stubFtpServer;
58 stubFtpServer.setCommandHandlers(mapping);
59 assertSame("commandHandler1", commandHandler, stubFtpServer.getCommandHandler("AAA"));
60 assertSame("commandHandler2", commandHandler_NoReplyTextBundle, stubFtpServer.getCommandHandler("BBB"));
62 assertSame("replyTextBundle", stubFtpServer.replyTextBundle, commandHandler.getReplyTextBundle());
65 assertEquals("CwdCommandHandler", CwdCommandHandler.class, stubFtpServer.getCommandHandler("CWD").getClass());
73 stubFtpServer.setCommandHandlers(null);
    [all...]
StubFtpServer_MultipleClientsIntegrationTest.java 24 import org.mockftpserver.stub.StubFtpServer;
31 * StubFtpServer tests for multiple FTP clients using the Apache Jakarta Commons Net FTP client.
52 private StubFtpServer stubFtpServer;
102 stubFtpServer = new StubFtpServer();
103 stubFtpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort());
104 stubFtpServer.setCommandHandler(CommandNames.PWD, new CustomPwdCommandHandler());
105 stubFtpServer.start();
134 stubFtpServer.stop();
    [all...]
StubFtpServerIntegrationTest.java 32 import org.mockftpserver.stub.StubFtpServer;
48 * Tests for StubFtpServer using the Apache Jakarta Commons Net FTP client.
64 private StubFtpServer stubFtpServer;
119 HelpCommandHandler helpCommandHandler = (HelpCommandHandler) stubFtpServer.getCommandHandler(CommandNames.HELP);
137 ListCommandHandler listCommandHandler = (ListCommandHandler) stubFtpServer.getCommandHandler(CommandNames.LIST);
158 ListCommandHandler listCommandHandler = (ListCommandHandler) stubFtpServer.getCommandHandler(CommandNames.LIST);
174 NlstCommandHandler nlstCommandHandler = (NlstCommandHandler) stubFtpServer.getCommandHandler(CommandNames.NLST);
191 PwdCommandHandler pwdCommandHandler = (PwdCommandHandler) stubFtpServer.getCommandHandler(CommandNames.PWD);
208 StatCommandHandler statCommandHandler = (StatCommandHandler) stubFtpServer.getCommandHandler(CommandNames.STAT);
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/example/
FtpWorkingDirectoryTest.java 19 import org.mockftpserver.stub.StubFtpServer;
25 * Example test using StubFtpServer, with programmatic configuration.
31 private StubFtpServer stubFtpServer;
42 stubFtpServer.setCommandHandler(CommandNames.PWD, pwdCommandHandler);
44 stubFtpServer.start();
58 stubFtpServer = new StubFtpServer();
59 stubFtpServer.setServerControlPort(PORT);
67 stubFtpServer.stop();
    [all...]
RemoteFileTest.java 20 import org.mockftpserver.stub.StubFtpServer;
28 * Example test using StubFtpServer, with programmatic configuration.
36 private StubFtpServer stubFtpServer;
48 stubFtpServer.setCommandHandler(CommandNames.RETR, retrCommandHandler);
50 stubFtpServer.start();
71 stubFtpServer.setCommandHandler(CommandNames.RETR, retrCommandHandler);
73 stubFtpServer.start();
92 stubFtpServer = new StubFtpServer();
    [all...]
SpringConfigurationTest.java 22 import org.mockftpserver.stub.StubFtpServer;
30 * Example test for StubFtpServer, using the Spring Framework ({@link http://www.springframework.org/})
39 private StubFtpServer stubFtpServer;
43 * Test starting the StubFtpServer configured within the example Spring configuration file
46 stubFtpServer.start();
75 ApplicationContext context = new ClassPathXmlApplicationContext("stubftpserver-beans.xml");
76 stubFtpServer = (StubFtpServer) context.getBean("stubFtpServer");
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/example/
FtpWorkingDirectoryTest.java 19 import org.mockftpserver.stub.StubFtpServer;
25 * Example test using StubFtpServer, with programmatic configuration.
31 private StubFtpServer stubFtpServer;
42 stubFtpServer.setCommandHandler(CommandNames.PWD, pwdCommandHandler);
44 stubFtpServer.start();
58 stubFtpServer = new StubFtpServer();
59 stubFtpServer.setServerControlPort(PORT);
67 stubFtpServer.stop();
    [all...]
RemoteFileTest.java 22 import org.mockftpserver.stub.StubFtpServer;
28 * Example test using StubFtpServer, with programmatic configuration.
36 private StubFtpServer stubFtpServer;
48 stubFtpServer.setCommandHandler(CommandNames.RETR, retrCommandHandler);
50 stubFtpServer.start();
71 stubFtpServer.setCommandHandler(CommandNames.RETR, retrCommandHandler);
73 stubFtpServer.start();
92 stubFtpServer = new StubFtpServer();
    [all...]
SpringConfigurationTest.java 23 import org.mockftpserver.stub.StubFtpServer;
29 * Example test for StubFtpServer, using the Spring Framework ({@link http://www.springframework.org/})
38 private StubFtpServer stubFtpServer;
42 * Test starting the StubFtpServer configured within the example Spring configuration file
45 stubFtpServer.start();
74 ApplicationContext context = new ClassPathXmlApplicationContext("stubftpserver-beans.xml");
75 stubFtpServer = (StubFtpServer) context.getBean("stubFtpServer");
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/
StubFtpServerTest.java 30 * Unit tests for StubFtpServer. Also see {@link StubFtpServer_StartTest}
38 private StubFtpServer stubFtpServer;
50 stubFtpServer.setCommandHandler("ZZZ", commandHandler_NoReplyTextBundle);
51 assertSame("commandHandler", commandHandler_NoReplyTextBundle, stubFtpServer.getCommandHandler("ZZZ"));
59 stubFtpServer.setCommandHandler("ZZZ", commandHandler);
60 assertSame("commandHandler", commandHandler, stubFtpServer.getCommandHandler("ZZZ"));
61 assertSame("replyTextBundle", stubFtpServer.getReplyTextBundle(), commandHandler.getReplyTextBundle());
68 stubFtpServer.setReplyTextBaseName("SampleReplyText");
72 stubFtpServer.setCommandHandler("CWD", commandHandler);
    [all...]
StubFtpServer_MultipleClientsIntegrationTest.java 31 * StubFtpServer tests for multiple FTP clients using the Apache Jakarta Commons Net FTP client.
52 private StubFtpServer stubFtpServer;
102 stubFtpServer = new StubFtpServer();
103 stubFtpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort());
104 stubFtpServer.setCommandHandler(CommandNames.PWD, new CustomPwdCommandHandler());
105 stubFtpServer.start();
134 stubFtpServer.stop();
StubFtpServerIntegrationTest.java 37 * Tests for StubFtpServer using the Apache Jakarta Commons Net FTP client.
52 private StubFtpServer stubFtpServer;
74 assertTrue("isStarted", stubFtpServer.isStarted());
75 assertFalse("isShutdown", stubFtpServer.isShutdown());
101 HelpCommandHandler helpCommandHandler = (HelpCommandHandler) stubFtpServer.getCommandHandler(CommandNames.HELP);
119 ListCommandHandler listCommandHandler = (ListCommandHandler) stubFtpServer.getCommandHandler(CommandNames.LIST);
140 ListCommandHandler listCommandHandler = (ListCommandHandler) stubFtpServer.getCommandHandler(CommandNames.LIST);
153 NlstCommandHandler nlstCommandHandler = (NlstCommandHandler) stubFtpServer.getCommandHandler(CommandNames.NLST);
170 PwdCommandHandler pwdCommandHandler = (PwdCommandHandler) stubFtpServer.getCommandHandler(CommandNames.PWD);
    [all...]

Completed in 142 milliseconds