程序包 org.springframework.test.web.servlet
Contains server-side support for testing Spring MVC applications.
- 另请参阅:
MockMvc
接口概要 接口 说明 DispatcherServletCustomizer Strategy interface for customizingDispatcherServlet
instances that are managed byMockMvc
.MockMvcBuilder Builds aMockMvc
instance.MvcResult Provides access to the result of an executed request.RequestBuilder Builds aMockHttpServletRequest
.ResultActions Allows applying actions, such as expectations, on the result of an executed request.ResultHandler AResultHandler
performs a generic action on the result of an executed request — for example, printing debug information.ResultMatcher AResultMatcher
matches the result of an executed request against some expectation.SmartRequestBuilder Extended variant of aRequestBuilder
that applies itsRequestPostProcessor
s as a separate step from theRequestBuilder.buildRequest(javax.servlet.ServletContext)
method.类概要 类 说明 MockMvc Main entry point for server-side Spring MVC test support.MockMvcBuilderSupport Base class for MockMvc builder implementations, providing the capability to create aMockMvc
instance.