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