Package io.jmix.flowui.testassist.vaadin
Class TestServletContext
java.lang.Object
org.springframework.mock.web.MockServletContext
io.jmix.flowui.testassist.vaadin.TestServletContext
- All Implemented Interfaces:
jakarta.servlet.ServletContext
public class TestServletContext
extends org.springframework.mock.web.MockServletContext
Mocked servlet context. Provides ability to add
ServletContextListener
and invoke them.- See Also:
-
VaadinServletContextInitializer
-
Field Summary
Fields inherited from interface jakarta.servlet.ServletContext
ORDERED_LIBS, TEMPDIR
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.mock.web.MockServletContext
addFilter, addFilter, addFilter, addInitParameter, addJspFile, addListener, addListener, addMimeType, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDeclaredRoles, getDefaultServletName, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestCharacterEncoding, getRequestDispatcher, getResource, getResourceAsStream, getResourceLocation, getResourcePaths, getResponseCharacterEncoding, getServerInfo, getServletContextName, getServletRegistration, getServletRegistrations, getSessionCookieConfig, getSessionTimeout, getVirtualServerName, log, log, registerContext, registerNamedDispatcher, removeAttribute, setAttribute, setContextPath, setDefaultServletName, setEffectiveMajorVersion, setEffectiveMinorVersion, setInitParameter, setMajorVersion, setMinorVersion, setRequestCharacterEncoding, setResponseCharacterEncoding, setServletContextName, setSessionTimeout, setSessionTrackingModes, unregisterNamedDispatcher
-
Field Details
-
eventListener
-
-
Constructor Details
-
TestServletContext
public TestServletContext()
-
-
Method Details
-
addListener
- Specified by:
addListener
in interfacejakarta.servlet.ServletContext
- Overrides:
addListener
in classorg.springframework.mock.web.MockServletContext
-
fireServletContextInitialized
public void fireServletContextInitialized()
-