Beispiel #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);
   }
 }
Beispiel #2
0
 protected NamedPayload awaitUpload() throws InterruptedException {
   return server.awaitUpload(timeout);
 }
Beispiel #3
0
 protected void stopServer() throws Exception {
   // stop the server
   if (null != server) {
     server.stop();
   }
 }