@Test public void withContextRootDirectoryAsRelativeDirectory() { final File f = new File(".", "src/main/java"); assertTrue("src/main/java should exist [" + f.getAbsolutePath() + "] make sure you are running " + "the tests with the working directory set to this module.", f.exists()); final EmbedVaadinComponent embed = EmbedVaadin.forComponent(component).withContextRootDirectory("src/main/java"); assertEquals("was not detected as expected", f, embed.build().getConfig().getContextRootDirectory()); }
public static EmbedVaadinComponent forComponent(Component component) { return new EmbedVaadinComponent(component); }
EmbedVaadin { public static EmbedVaadinComponent forComponent(Component component) { return new EmbedVaadinComponent(component); } }
EmbedVaadin { public static EmbedVaadinComponent forComponent(Component component) { return new EmbedVaadinComponent(component); } private  EmbedVaadin(); }
EmbedVaadin { public static EmbedVaadinComponent forComponent(Component component) { return new EmbedVaadinComponent(component); } private  EmbedVaadin(); static EmbedVaadinComponent forComponent(Component component); static EmbedVaadinApplication forUI(Class<? extends UI> uiClass); }
EmbedVaadin { public static EmbedVaadinComponent forComponent(Component component) { return new EmbedVaadinComponent(component); } private  EmbedVaadin(); static EmbedVaadinComponent forComponent(Component component); static EmbedVaadinApplication forUI(Class<? extends UI> uiClass);  }