程序包 org.springframework.mock.web
A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with Spring's Web MVC framework.
Useful for testing web contexts and controllers.
类概要 类 说明 DelegatingServletInputStream Delegating implementation ofServletInputStream.DelegatingServletOutputStream Delegating implementation ofServletOutputStream.MockAsyncContext Mock implementation of theAsyncContextinterface.MockBodyContent Mock implementation of theBodyContentclass.MockCookie Extension ofCookiewith extra attributes, as defined in RFC 6265.MockExpressionEvaluator Mock implementation of the JSP 2.0ExpressionEvaluatorinterface, delegating to the Apache JSTLExpressionEvaluatorManager.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).