Uses of Package
org.springframework.test.web.servlet.setup
Package
Description
AssertJ support for MockMvc.
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.-
ClassDescriptionA concrete implementation of
AbstractMockMvcBuilder
that provides theWebApplicationContext
supplied to it as a constructor argument.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. -
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, for example, a 3rd party library that wants to provide shortcuts for setting up a MockMvc. -
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, for example, a 3rd party library that wants to provide shortcuts for setting up a MockMvc. -
ClassDescriptionContract for customizing a
ConfigurableMockMvcBuilder
in some specific way, for example, a 3rd party library that wants to provide shortcuts for setting up a MockMvc. -
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, for example, a 3rd party library that wants to provide shortcuts for setting up a MockMvc.AMockMvcBuilder
that acceptsRouterFunction
registrations thus allowing full control over the instantiation and initialization of router functions and their dependencies similar to plain unit tests, and also making it possible to test one function at a time.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.