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);
}
Aggregations