Package com.vaadin.browserless.mocks
Class MockVaadinServlet
-
- All Implemented Interfaces:
-
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,java.io.Serializable
public class MockVaadinServlet extends VaadinServletMakes sure that routes are properly registered, and that MockService is used instead of vanilla VaadinServletService.
To use a custom servlet instead of this one, just pass it to MockVaadin.setup.
-
-
Field Summary
Fields Modifier and Type Field Description private final Routesroutesprivate final UIFactoryuiFactoryprivate final Enumeration<String>initParameterNamesprivate final StringservletInfoprivate final StringservletNameprivate final ServletContextservletContextprivate final VaadinServletServiceserviceprivate final ServletConfigservletConfig
-
Constructor Summary
Constructors Constructor Description MockVaadinServlet(Routes routes, UIFactory uiFactory)MockVaadinServlet(Routes routes)MockVaadinServlet()
-
Method Summary
Modifier and Type Method Description final RoutesgetRoutes()final UIFactorygetUiFactory()-
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameterNames, getServletContext, getServletInfo, getServletName, init, log, log -
Methods inherited from class com.vaadin.flow.server.VaadinServlet
getService, getServletConfig -
Methods inherited from class jakarta.servlet.Servlet
destroy, init, service -
Methods inherited from class jakarta.servlet.ServletConfig
getInitParameter -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-