6364656667686970717273
server.start(); Throwable e = webappcontext.getUnavailableException(); if (e != null) { throw e; } server.stop(); } }
501502503504505506507508509510511
processor.setContext(env); processor.execute(); try { reshandler.stop(); } finally { server.stop(); server.destroy(); } }
919293949596979899100101
assertThat( service.checkRemoteConnectivity( repo.getId() ) ).isTrue(); } finally { service.deleteRemoteRepository( "id-new" ); repoServer.stop(); } } @Test public void checkRemoteConnectivityEmptyRemote()
125126127128129130131132133134135
} finally { service.deleteRemoteRepository( "id-new" ); FileUtils.deleteQuietly( tmpDir ); repoServer.stop(); } } @Test public void checkRemoteConnectivityFail()
6465666768697071727374
try { System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP"); server.start(); System.in.read(); System.out.println(">>> STOPPING EMBEDDED JETTY SERVER"); server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(1); }
498499500501502503504505506507508
117118119120121122123124125126127
protected void doStop(ServiceStopper stopper) throws Exception { Server temp = server; server = null; if (temp != null) { temp.stop(); } } public InetSocketAddress getSocketAddress() { return null;
499500501502503504505506507508509
500501502503504505506507508509510