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
    Modifier and Type
    Field
    Description
    protected EventListener
     

    Fields inherited from interface jakarta.servlet.ServletContext

    ORDERED_LIBS, TEMPDIR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends EventListener>
    void
    addListener(T listener)
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TestServletContext

      public TestServletContext()
  • Method Details

    • addListener

      public <T extends EventListener> void addListener(T listener)
      Specified by:
      addListener in interface jakarta.servlet.ServletContext
      Overrides:
      addListener in class org.springframework.mock.web.MockServletContext
    • fireServletContextInitialized

      public void fireServletContextInitialized()