Uses of Package
org.springframework.test.web.servlet.setup
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Server-side support for testing Spring MVC applications with
MockMvc
and HtmlUnit.Server-side support for testing Spring MVC applications with
MockMvc
and the Selenium HtmlUnitDriver
.Contains built-in
MockMvcBuilder
implementations.-
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, e.g. -
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, e.g. -
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, e.g. -
ClassDescriptionAbstract implementation of
MockMvcBuilder
with common methods for configuring filters, default request properties, global expectations and global result actions.Defines common methods for building aMockMvc
.A concrete implementation ofAbstractMockMvcBuilder
that provides theWebApplicationContext
supplied to it as a constructor argument.Contract for customizing aConfigurableMockMvcBuilder
in some specific way, e.g.MockMvcConfigurer
that stores and re-uses the HTTP session across multiple requests performed through the sameMockMvc
instance.AMockMvcBuilder
that accepts@Controller
registrations 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.