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