コード例 #1
0
 protected void startServer() throws Exception {
   server = new Server(port);
   server.awaitStart(timeout);
   // this is really ugly, but the above doesn't get to waiting.
   // need to improve this as part of ftp server work
   synchronized (this) {
     wait(500);
   }
 }
コード例 #2
0
 protected NamedPayload awaitUpload() throws InterruptedException {
   return server.awaitUpload(timeout);
 }
コード例 #3
0
 protected void stopServer() throws Exception {
   // stop the server
   if (null != server) {
     server.stop();
   }
 }