Search in sources :

Example 11 with AppShellRegistry

use of com.vaadin.flow.server.AppShellRegistry in project flow by vaadin.

the class VaadinAppShellInitializerTest method should_reuseContextAppShell_when_creatingNewInstance.

@Test
public void should_reuseContextAppShell_when_creatingNewInstance() throws Exception {
    AppShellRegistry registry = AppShellRegistry.getInstance(context);
    Assert.assertSame(registry, AppShellRegistry.getInstance(context));
}
Also used : AppShellRegistry(com.vaadin.flow.server.AppShellRegistry) Test(org.junit.Test)

Aggregations

AppShellRegistry (com.vaadin.flow.server.AppShellRegistry)11 Test (org.junit.Test)8 JsonObject (elemental.json.JsonObject)3 Document (org.jsoup.nodes.Document)3 PushConfiguration (com.vaadin.flow.component.PushConfiguration)2 VaadinContext (com.vaadin.flow.server.VaadinContext)2 VaadinRequest (com.vaadin.flow.server.VaadinRequest)2 VaadinServletContext (com.vaadin.flow.server.VaadinServletContext)2 Elements (org.jsoup.select.Elements)2 AppShellConfigurator (com.vaadin.flow.component.page.AppShellConfigurator)1 BodySize (com.vaadin.flow.component.page.BodySize)1 Inline (com.vaadin.flow.component.page.Inline)1 Meta (com.vaadin.flow.component.page.Meta)1 Push (com.vaadin.flow.component.page.Push)1 Viewport (com.vaadin.flow.component.page.Viewport)1 DeploymentConfiguration (com.vaadin.flow.function.DeploymentConfiguration)1 PageTitle (com.vaadin.flow.router.PageTitle)1 ERROR_HEADER_NO_APP_CONFIGURATOR (com.vaadin.flow.server.AppShellRegistry.ERROR_HEADER_NO_APP_CONFIGURATOR)1 ERROR_HEADER_NO_SHELL (com.vaadin.flow.server.AppShellRegistry.ERROR_HEADER_NO_SHELL)1 ERROR_HEADER_OFFENDING_CONFIGURATOR (com.vaadin.flow.server.AppShellRegistry.ERROR_HEADER_OFFENDING_CONFIGURATOR)1