@Test public final void testNewVitamServer() { final JunitHelper junitHelper = JunitHelper.getInstance(); final int port = junitHelper.findAvailablePort(); final VitamServer server = VitamServerFactory.newVitamServer(port); assertEquals(port, server.getPort()); assertNull(server.getHandler()); assertFalse(server.isConfigured()); try { server.configure(null); fail("Should raized an axception"); } catch (final VitamApplicationServerException e) { } try { server.startAndJoin(); fail("Should raized an axception"); } catch (final VitamApplicationServerException e) { } junitHelper.releasePort(port); }
public static VitamServer newVitamServer(int port) { ParametersChecker.checkValue("Port", port, 1); return new BasicVitamServer(port); }
VitamServerFactory { public static VitamServer newVitamServer(int port) { ParametersChecker.checkValue("Port", port, 1); return new BasicVitamServer(port); } }
VitamServerFactory { public static VitamServer newVitamServer(int port) { ParametersChecker.checkValue("Port", port, 1); return new BasicVitamServer(port); } private  VitamServerFactory(); }
VitamServerFactory { public static VitamServer newVitamServer(int port) { ParametersChecker.checkValue("Port", port, 1); return new BasicVitamServer(port); } private  VitamServerFactory(); static VitamServer newVitamServerOnDefaultPort(); static void setDefaultPort(int port); static int getDefaultPort(); static VitamServer newVitamServer(int port); static VitamServer newVitamServerWithoutConnector(int port); static VitamServer newVitamServerByJettyConf(final String jettyConfigFile); }
VitamServerFactory { public static VitamServer newVitamServer(int port) { ParametersChecker.checkValue("Port", port, 1); return new BasicVitamServer(port); } private  VitamServerFactory(); static VitamServer newVitamServerOnDefaultPort(); static void setDefaultPort(int port); static int getDefaultPort(); static VitamServer newVitamServer(int port); static VitamServer newVitamServerWithoutConnector(int port); static VitamServer newVitamServerByJettyConf(final String jettyConfigFile);  }