/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/core/server/ |
AbstractFtpServer_MultipleStartAndStopTest.groovy | 23 * Test starting and stopping Abstract(Fake)FtpServer multiple times.
31 private FakeFtpServer ftpServer = new FakeFtpServer()
38 ftpServer.setServerControlPort(port);
40 ftpServer.start();
41 assert ftpServer.getServerControlPort() == port
43 assertEquals("started - after start()", true, ftpServer.isStarted());
44 assertEquals("shutdown - after start()", false, ftpServer.isShutdown());
46 ftpServer.stop();
48 assertEquals("shutdown - after stop()", true, ftpServer.isShutdown());
54 ftpServer.setServerControlPort(0); [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
FakeFtpServerTest.groovy | 42 ftpServer.setCommandHandler("ZZZ", commandHandler_NotServerConfigurationAware)
43 assert ftpServer.getCommandHandler("ZZZ") == commandHandler_NotServerConfigurationAware
47 ftpServer.setCommandHandler("ZZZ", commandHandler)
48 assert ftpServer.getCommandHandler("ZZZ") == commandHandler
49 assert ftpServer == commandHandler.serverConfiguration
54 ftpServer.setCommandHandler("ZZZ", cmdHandler)
55 assert ftpServer.getCommandHandler("ZZZ") == cmdHandler
56 assert ftpServer.replyTextBundle == cmdHandler.replyTextBundle
63 ftpServer.addUserAccount(userAccount)
64 assert ftpServer.getUserAccount("abc") == userAccount [all...] |
RunFakeFtpServer.groovy | 48 def ftpServer = new FakeFtpServer()
49 ftpServer.fileSystem = fileSystem
50 ftpServer.userAccounts = [userAccount]
51 ftpServer.run()
|
FakeFtpServerIntegrationTest.groovy | 58 private FakeFtpServer ftpServer
135 ftpServer.setCommandHandler(CommandNames.CWD, cwdCommandHandler);
146 ftpServer.setCommandHandler(CommandNames.CWD, cwdCommandHandler);
177 ftpServer.setCommandHandler("FEAT", featCommandHandler);
184 ftpServer.helpText = [a: 'aaa', '': 'default']
220 ftpServer.systemName = 'UNIX'
226 ftpServer.fileSystem = unixFileSystem
252 assertTrue("isStarted", ftpServer.isStarted());
253 assertFalse("isShutdown", ftpServer.isShutdown());
447 ftpServer = new FakeFtpServer() [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/server/ |
AbstractFtpServer_StartTestCase.java | 32 private AbstractFtpServer ftpServer;
38 ftpServer.setServerControlPort(PortTestUtil.getFtpServerControlPort());
39 assertEquals("started - before", false, ftpServer.isStarted());
41 ftpServer.start();
43 assertEquals("started - after start()", true, ftpServer.isStarted());
44 assertEquals("shutdown - after start()", false, ftpServer.isShutdown());
46 ftpServer.stop();
48 assertEquals("shutdown - after stop()", true, ftpServer.isShutdown());
57 ftpServer.setServerControlPort(SERVER_CONTROL_PORT);
58 ftpServer.start(); [all...] |
AbstractFtpServerTestCase.java | 40 protected AbstractFtpServer ftpServer;
52 ftpServer.setCommandHandlers(mapping);
53 assertSame("commandHandler1", commandHandler, ftpServer.getCommandHandler("AAA"));
54 assertSame("commandHandler2", commandHandler2, ftpServer.getCommandHandler("BBB"));
60 assertTrue("ConnectCommandHandler", ftpServer.getCommandHandler(CommandNames.CONNECT) != null);
68 ftpServer.setCommandHandlers(null);
80 ftpServer.setCommandHandler("ZZZ", commandHandler2);
81 assertSame("commandHandler", commandHandler2, ftpServer.getCommandHandler("ZZZ"));
91 ftpServer.setCommandHandler(null, commandHandler);
104 ftpServer.setCommandHandler("ZZZ", null); [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/ |
StubFtpServerTest.java | 87 stubFtpServer = (StubFtpServer) ftpServer;
|