ComponentBasedEmbedVaadinTomcat extends AbstractEmbedVaadinTomcat implements ComponentBasedVaadinServer { public EmbedComponentConfig getConfig() { return config; } ComponentBasedEmbedVaadinTomcat(EmbedComponentConfig config, Component component); EmbedComponentConfig getConfig();  }
@Test public void startWithDefaultSettings() { final EmbedVaadinServer server = EmbedVaadin.forComponent(new Button("Hello")) .wait(false).build(); assertEquals("Wrong default value for http port", 0, server.getConfig().getPort()); assertDeployUrl(server.getConfig(), "http: server.start(); assertTrue("A port should have been allocated automatically", server.getConfig().getPort() != 0); assertDeployUrl(server.getConfig(), "http: checkVaadinIsDeployed(server.getConfig().getPort(), ""); server.stop(); }
@Test public void startWithCustomBrowserUrl() { final EmbedVaadinServer server = EmbedVaadin.forComponent(new Button("Hello")) .openBrowserAt("?debug").openBrowser(false).wait(false).build(); assertOpenBrowserUrl(server.getConfig(), "http: server.start(); assertTrue("A port should have been allocated automatically", server.getConfig().getPort() != 0); assertOpenBrowserUrl(server.getConfig(), "http: checkVaadinIsDeployed(server.getConfig().getPort(), ""); server.stop(); }