Class AbstractWebScopeAwareTestCase


  • public abstract class AbstractWebScopeAwareTestCase
    extends Object
    Base class for JUnit tests where the initialization of the scopes happens before each test execution.
    Author:
    Philip Helger
    • Constructor Detail

      • AbstractWebScopeAwareTestCase

        public AbstractWebScopeAwareTestCase()
    • Method Detail

      • getServletContext

        @Nonnull
        protected final com.helger.servlet.mock.MockServletContext getServletContext()
      • getServletPool

        @Nonnull
        protected final com.helger.servlet.mock.MockServletPool getServletPool()
      • getRequest

        @Nullable
        protected final com.helger.servlet.mock.MockHttpServletRequest getRequest()
      • getSession

        @Nullable
        protected final jakarta.servlet.http.HttpSession getSession​(boolean bCreateIfNotExisting)