Package com.mockobjects.servlet
Class MockServletContext
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.servlet.MockServletContext
- All Implemented Interfaces:
Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpectedAttribute(String key, Object value) voidaddRealPath(String realPath) getAttribute(String string) ServletContextgetContext(String string) getInitParameter(String paramName) intgetMimeType(String string) intRequestDispatchergetNamedDispatcher(String string) getRealPath(String string) RequestDispatchergetResource(String string) getResourceAsStream(String string) getResourcePaths(String string) ServletgetServlet(String string) voidvoidvoidvoidremoveAttribute(String string) voidsetAttribute(String key, Object value) voidsetExpectedLog(String string) voidsetExpectedLogThrowable(Throwable throwable) voidvoidsetInitParameter(String paramName, String paramValue) voidsetupGetAttribute(String string, Object object) voidsetupGetRequestDispatcher(RequestDispatcher requestDispatcher) voidsetupGetResource(URL resource) voidsetupGetResourcePaths(Set resourcePaths) Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
Constructor Details
-
MockServletContext
public MockServletContext()
-
-
Method Details
-
getServlets
-
log
-
setExpectedLog
-
setupGetResource
-
getResource
-
setupGetResourcePaths
-
getResourcePaths
-
getContext
-
getMinorVersion
public int getMinorVersion() -
removeAttribute
-
log
-
setExpectedLogThrowable
-
addRealPath
-
getRealPath
-
getServletNames
-
getServlet
-
log
-
getServerInfo
-
setExpectedRequestDispatcherURI
-
setupGetRequestDispatcher
public void setupGetRequestDispatcher(RequestDispatcher requestDispatcher) -
getRequestDispatcher
-
getMajorVersion
public int getMajorVersion() -
getResourcePaths
-
setupGetAttribute
-
getMimeType
-
getNamedDispatcher
-
getInitParameter
-
setInitParameter
-
getAttribute
-
getAttributeNames
-
getServletContextName
-
getResourceAsStream
-
getInitParameterNames
-
addExpectedAttribute
-
setAttribute
-