Search in sources :

Example 1 with ServletInUI

use of com.vaadin.flow.server.MockUIContainingServlet.ServletInUI in project flow by vaadin.

the class LegacyPropertyEnabledTestServlet method testEnclosingUIClass.

@Test
public void testEnclosingUIClass() throws Exception {
    ServletInUI servlet = new MockUIContainingServlet.ServletInUI();
    servlet.init(new MockServletConfig());
    Class<? extends UI> uiClass = BootstrapHandler.getUIClass(new VaadinServletRequest(EasyMock.createMock(HttpServletRequest.class), servlet.getService()));
    Assert.assertEquals(MockUIContainingServlet.class, uiClass);
}
Also used : VaadinServletRequest(com.vaadin.flow.server.VaadinServletRequest) ServletInUI(com.vaadin.flow.server.MockUIContainingServlet.ServletInUI) Test(org.junit.Test)

Aggregations

ServletInUI (com.vaadin.flow.server.MockUIContainingServlet.ServletInUI)1 VaadinServletRequest (com.vaadin.flow.server.VaadinServletRequest)1 Test (org.junit.Test)1