Class MockVaadinSession

java.lang.Object
com.vaadin.server.VaadinSession
com.vaadin.testbench.uiunittest.mocks.MockVaadinSession
All Implemented Interfaces:
Serializable, EventListener, javax.servlet.http.HttpSessionBindingListener
Direct Known Subclasses:
MockUI.AlwaysLockedVaadinSession

public class MockVaadinSession extends com.vaadin.server.VaadinSession
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.server.VaadinSession

    com.vaadin.server.VaadinSession.FutureAccess, com.vaadin.server.VaadinSession.State
  • Field Summary

    Fields inherited from class com.vaadin.server.VaadinSession

    browser, UI_PARAMETER
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockVaadinSession(com.vaadin.server.VaadinService service, MockHttpSession httpSession)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
     
     
     
    com.vaadin.server.WrappedSession
     
    void
     
    void
     

    Methods inherited from class com.vaadin.server.VaadinSession

    access, accessSynchronously, addBootstrapListener, addRequestHandler, addUI, addUIProvider, createConnectorId, getAllSessions, getAttribute, getAttribute, getBrowser, getCommunicationManager, getConfiguration, getConverterFactory, getCsrfToken, getCumulativeRequestDuration, getCurrent, getDragAndDropService, getErrorHandler, getForSession, getGlobalResourceHandler, getLastRequestDuration, getLastRequestTimestamp, getLocale, getNextConnectorId, getNextUIid, getPendingAccessQueue, getPushId, getRequestHandlers, getService, getState, getUIByEmbedId, getUIById, getUIProviders, getUIs, hasLock, hasLock, isClosing, modifyBootstrapResponse, refreshTransients, removeBootstrapListener, removeFromSession, removeRequestHandler, removeUI, removeUIProvider, setAttribute, setAttribute, setCommunicationManager, setConfiguration, setConverterFactory, setCurrent, setErrorHandler, setLastRequestDuration, setLastRequestTimestamp, setLocale, setState, storeInSession, valueBound, valueUnbound

    Methods inherited from class java.lang.Object

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

    • MockVaadinSession

      public MockVaadinSession(com.vaadin.server.VaadinService service, MockHttpSession httpSession)
  • Method Details

    • getSession

      public com.vaadin.server.WrappedSession getSession()
      Overrides:
      getSession in class com.vaadin.server.VaadinSession
    • getHttpSession

      public MockHttpSession getHttpSession()
    • close

      public void close()
      Overrides:
      close in class com.vaadin.server.VaadinSession
    • getCloseCount

      public int getCloseCount()
    • getLockInstance

      public Lock getLockInstance()
      Overrides:
      getLockInstance in class com.vaadin.server.VaadinSession
    • lock

      public void lock()
      Overrides:
      lock in class com.vaadin.server.VaadinSession
    • unlock

      public void unlock()
      Overrides:
      unlock in class com.vaadin.server.VaadinSession