程序包的使用
cn.taketoday.test.web.servlet.setup
程序包
说明
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
MockMvcBuilder implementations.-
类说明Defines common methods for building a
MockMvc.A concrete implementation ofAbstractMockMvcBuilderthat provides theWebApplicationContextsupplied to it as a constructor argument.Contract for customizing aConfigurableMockMvcBuilderin some specific way, e.g. a 3rd party library that wants to provide shortcuts for setting up a MockMvc.AMockMvcBuilderthat accepts@Controllerregistrations thus allowing full control over the instantiation and initialization of controllers and their dependencies similar to plain unit tests, and also making it possible to test one controller at a time. -
类说明Contract for customizing a
ConfigurableMockMvcBuilderin some specific way, e.g. a 3rd party library that wants to provide shortcuts for setting up a MockMvc. -
类说明Contract for customizing a
ConfigurableMockMvcBuilderin some specific way, e.g. a 3rd party library that wants to provide shortcuts for setting up a MockMvc. -
类说明Abstract implementation of
MockMvcBuilderwith common methods for configuring filters, default request properties, global expectations and global result actions.Defines common methods for building aMockMvc.A concrete implementation ofAbstractMockMvcBuilderthat provides theWebApplicationContextsupplied to it as a constructor argument.Contract for customizing aConfigurableMockMvcBuilderin some specific way, e.g. a 3rd party library that wants to provide shortcuts for setting up a MockMvc.MockMvcConfigurerthat stores and re-uses the HTTP session across multiple requests performed through the sameMockMvcinstance.AMockMvcBuilderthat accepts@Controllerregistrations thus allowing full control over the instantiation and initialization of controllers and their dependencies similar to plain unit tests, and also making it possible to test one controller at a time.A stub WebApplicationContext that accepts registrations of object instances.