程序包的使用
cn.taketoday.test.web.servlet
程序包
说明
Contains client-side REST testing support.
Contains server-side support for testing Web MVC applications.
Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.Server-side support for testing Web MVC applications with
MockMvc
and HtmlUnit.Server-side support for testing Web MVC applications with
MockMvc
and the Selenium HtmlUnitDriver.Contains built-in
RequestBuilder
implementations.Contains built-in
ResultMatcher and ResultHandler implementations.Contains built-in
MockMvcBuilder implementations.-
-
类说明A simple implementation of
MvcResultwith setters.Main entry point for server-side Web MVC test support.Provides access to the result of an executed request.Builds aMockHttpServletRequest.Allows applying actions, such as expectations, on the result of an executed request.AResultHandlerperforms a generic action on the result of an executed request — for example, printing debug information.AResultMatchermatches the result of an executed request against some expectation.A subclass ofDispatcherServletthat saves the result in anMvcResult. -
类说明Strategy interface for customizing
DispatcherServletinstances that are managed byMockMvc.Main entry point for server-side Web MVC test support.Provides access to the result of an executed request.Builds aMockHttpServletRequest.Allows applying actions, such as expectations, on the result of an executed request.AResultMatchermatches the result of an executed request against some expectation. -
类说明Main entry point for server-side Web MVC test support.Builds a
MockHttpServletRequest.Extended variant of aRequestBuilderthat applies itscn.taketoday.test.web.servlet.request.RequestPostProcessorsas a separate step from theRequestBuilder.buildRequest(jakarta.servlet.ServletContext)method. -
-
类说明Provides access to the result of an executed request.Builds a
MockHttpServletRequest.Extended variant of aRequestBuilderthat applies itscn.taketoday.test.web.servlet.request.RequestPostProcessorsas a separate step from theRequestBuilder.buildRequest(jakarta.servlet.ServletContext)method. -
类说明Provides access to the result of an executed request.A
ResultHandlerperforms a generic action on the result of an executed request — for example, printing debug information.AResultMatchermatches the result of an executed request against some expectation. -
类说明Strategy interface for customizing
DispatcherServletinstances that are managed byMockMvc.Main entry point for server-side Web MVC test support.Builds aMockMvcinstance.Base class for MockMvc builder implementations, providing the capability to create aMockMvcinstance.Builds aMockHttpServletRequest.AResultHandlerperforms a generic action on the result of an executed request — for example, printing debug information.AResultMatchermatches the result of an executed request against some expectation.