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 theAsyncContextinterface.MockBodyContent Mock implementation of theBodyContentclass.MockExpressionEvaluator Mock implementation of the JSP 2.0ExpressionEvaluatorinterface, delegating to the Apache JSTL ExpressionEvaluatorManager.MockFilterChain Mock implementation of theFilterChaininterface.MockFilterConfig Mock implementation of theFilterConfiginterface.MockHttpServletRequest Mock implementation of theHttpServletRequestinterface.MockHttpServletResponse Mock implementation of theHttpServletResponseinterface.MockHttpSession Mock implementation of theHttpSessioninterface.MockJspWriter Mock implementation of theJspWriterclass.MockMultipartFile Mock implementation of theMultipartFileinterface.MockMultipartHttpServletRequest Mock implementation of theMultipartHttpServletRequestinterface.MockPageContext Mock implementation of thePageContextinterface.MockPart Mock implementation ofjavax.servlet.http.Part.MockRequestDispatcher Mock implementation of theRequestDispatcherinterface.MockServletConfig Mock implementation of theServletConfiginterface.MockServletContext Mock implementation of theServletContextinterface.MockSessionCookieConfig Mock implementation of theSessionCookieConfiginterface.PassThroughFilterChain Implementation of theFilterConfiginterface 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).