程序包 org.springframework.test.web.servlet
Contains server-side support for testing Spring MVC applications.
- 另请参阅:
MockMvc
接口概要 接口 说明 DispatcherServletCustomizer Strategy interface for customizingDispatcherServletinstances that are managed byMockMvc.MockMvcBuilder Builds aMockMvcinstance.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 AResultHandlerperforms a generic action on the result of an executed request — for example, printing debug information.ResultMatcher AResultMatchermatches the result of an executed request against some expectation.SmartRequestBuilder Extended variant of aRequestBuilderthat applies itsRequestPostProcessors 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 aMockMvcinstance.