Package org.springframework.mock.web
A comprehensive set of Servlet API 3.0 mock objects, targeted at usage with Spring's Web MVC framework.
Useful for testing web contexts and controllers.
More convenient to use than dynamic mock objects (EasyMock) or existing Servlet API mock objects (MockObjects).
Class Summary Class Description DelegatingServletInputStream Delegating implementation ofServletInputStream
.DelegatingServletOutputStream Delegating implementation ofServletOutputStream
.MockAsyncContext Mock implementation of theAsyncContext
interface.MockBodyContent Mock implementation of theBodyContent
class.MockExpressionEvaluator Mock implementation of the JSP 2.0ExpressionEvaluator
interface, delegating to the Apache JSTL ExpressionEvaluatorManager.MockFilterChain Mock implementation of theFilterChain
interface.MockFilterConfig Mock implementation of theFilterConfig
interface.MockHttpServletRequest Mock implementation of theHttpServletRequest
interface.MockHttpServletResponse Mock implementation of theHttpServletResponse
interface.MockHttpSession Mock implementation of theHttpSession
interface.MockJspWriter Mock implementation of theJspWriter
class.MockMultipartFile Mock implementation of theMultipartFile
interface.MockMultipartHttpServletRequest Mock implementation of theMultipartHttpServletRequest
interface.MockPageContext Mock implementation of thePageContext
interface.MockPart Mock implementation ofjavax.servlet.http.Part
.MockRequestDispatcher Mock implementation of theRequestDispatcher
interface.MockServletConfig Mock implementation of theServletConfig
interface.MockServletContext Mock implementation of theServletContext
interface.MockSessionCookieConfig Mock implementation of theSessionCookieConfig
interface.PassThroughFilterChain Implementation of theFilterConfig
interface which simply passes the call through to a given Filter/FilterChain combination (indicating the next Filter in the chain along with the FilterChain that it is supposed to work on) or to a given Servlet (indicating the end of the chain).