Search in sources :

Example 16 with AlwaysLockedVaadinSession

use of com.vaadin.tests.util.AlwaysLockedVaadinSession in project flow by vaadin.

the class ElementTest method createUI.

@SuppressWarnings("serial")
private UI createUI() {
    VaadinSession session = new AlwaysLockedVaadinSession(new MockVaadinServletService());
    UI ui = new UI() {

        @Override
        public VaadinSession getSession() {
            return session;
        }
    };
    return ui;
}
Also used : VaadinSession(com.vaadin.flow.server.VaadinSession) AlwaysLockedVaadinSession(com.vaadin.tests.util.AlwaysLockedVaadinSession) MockVaadinServletService(com.vaadin.flow.server.MockVaadinServletService) MockUI(com.vaadin.tests.util.MockUI) UI(com.vaadin.flow.component.UI) AlwaysLockedVaadinSession(com.vaadin.tests.util.AlwaysLockedVaadinSession)

Aggregations

AlwaysLockedVaadinSession (com.vaadin.tests.util.AlwaysLockedVaadinSession)16 MockVaadinServletService (com.vaadin.flow.server.MockVaadinServletService)14 MockVaadinSession (com.vaadin.flow.server.MockVaadinSession)11 MockUI (com.vaadin.tests.util.MockUI)11 Location (com.vaadin.flow.router.Location)8 NavigationEvent (com.vaadin.flow.router.NavigationEvent)8 MockDeploymentConfiguration (com.vaadin.tests.util.MockDeploymentConfiguration)8 Test (org.junit.Test)8 Router (com.vaadin.flow.router.Router)7 ExtendedClientDetails (com.vaadin.flow.component.page.ExtendedClientDetails)6 TestRouteRegistry (com.vaadin.flow.router.TestRouteRegistry)6 Component (com.vaadin.flow.component.Component)5 Element (com.vaadin.flow.dom.Element)5 MockVaadinContext (com.vaadin.flow.server.MockVaadinContext)5 HasElement (com.vaadin.flow.component.HasElement)4 NavigationStateBuilder (com.vaadin.flow.router.NavigationStateBuilder)4 RouteConfiguration (com.vaadin.flow.router.RouteConfiguration)4 VaadinService (com.vaadin.flow.server.VaadinService)4 VaadinServletRequest (com.vaadin.flow.server.VaadinServletRequest)4 UI (com.vaadin.flow.component.UI)3