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 TypeMethodDescriptionvoid
addExpectedAttribute
(String key, Object value) void
addRealPath
(String realPath) getAttribute
(String string) ServletContext
getContext
(String string) getInitParameter
(String paramName) int
getMimeType
(String string) int
RequestDispatcher
getNamedDispatcher
(String string) getRealPath
(String string) RequestDispatcher
getResource
(String string) getResourceAsStream
(String string) getResourcePaths
(String string) Servlet
getServlet
(String string) void
void
void
void
removeAttribute
(String string) void
setAttribute
(String key, Object value) void
setExpectedLog
(String string) void
setExpectedLogThrowable
(Throwable throwable) void
void
setInitParameter
(String paramName, String paramValue) void
setupGetAttribute
(String string, Object object) void
setupGetRequestDispatcher
(RequestDispatcher requestDispatcher) void
setupGetResource
(URL resource) void
setupGetResourcePaths
(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
-