Class MockServletContext

java.lang.Object
com.mockobjects.MockObject
com.mockobjects.servlet.MockServletContext
All Implemented Interfaces:
Verifiable

public class MockServletContext extends MockObject
  • Constructor Details

    • MockServletContext

      public MockServletContext()
  • Method Details

    • getServlets

      public Enumeration getServlets()
    • log

      public void log(String string)
    • setExpectedLog

      public void setExpectedLog(String string)
    • setupGetResource

      public void setupGetResource(URL resource)
    • getResource

      public URL getResource(String string)
    • setupGetResourcePaths

      public void setupGetResourcePaths(Set resourcePaths)
    • getResourcePaths

      public Set getResourcePaths(String string)
    • getContext

      public ServletContext getContext(String string)
    • getMinorVersion

      public int getMinorVersion()
    • removeAttribute

      public void removeAttribute(String string)
    • log

      public void log(String string, Throwable t)
    • setExpectedLogThrowable

      public void setExpectedLogThrowable(Throwable throwable)
    • addRealPath

      public void addRealPath(String realPath)
    • getRealPath

      public String getRealPath(String string)
    • getServletNames

      public Enumeration getServletNames()
    • getServlet

      public Servlet getServlet(String string)
    • log

      public void log(Exception exception, String string)
    • getServerInfo

      public String getServerInfo()
    • setExpectedRequestDispatcherURI

      public void setExpectedRequestDispatcherURI(String uri)
    • setupGetRequestDispatcher

      public void setupGetRequestDispatcher(RequestDispatcher requestDispatcher)
    • getRequestDispatcher

      public RequestDispatcher getRequestDispatcher(String uri)
    • getMajorVersion

      public int getMajorVersion()
    • getResourcePaths

      public Set getResourcePaths()
    • setupGetAttribute

      public void setupGetAttribute(String string, Object object)
    • getMimeType

      public String getMimeType(String string)
    • getNamedDispatcher

      public RequestDispatcher getNamedDispatcher(String string)
    • getInitParameter

      public String getInitParameter(String paramName)
    • setInitParameter

      public void setInitParameter(String paramName, String paramValue)
    • getAttribute

      public Object getAttribute(String string)
    • getAttributeNames

      public Enumeration getAttributeNames()
    • getServletContextName

      public String getServletContextName()
    • getResourceAsStream

      public InputStream getResourceAsStream(String string)
    • getInitParameterNames

      public Enumeration getInitParameterNames()
    • addExpectedAttribute

      public void addExpectedAttribute(String key, Object value)
    • setAttribute

      public void setAttribute(String key, Object value)