Package | Description |
---|---|
org.springframework.test.web.client |
Contains client-side REST testing support.
|
org.springframework.test.web.servlet |
Contains server-side support for testing Spring MVC applications.
|
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
org.springframework.test.web.servlet.htmlunit |
Server-side support for testing Spring MVC applications with
MockMvc
and HtmlUnit. |
org.springframework.test.web.servlet.htmlunit.webdriver |
Server-side support for testing Spring MVC applications with
MockMvc
and the Selenium HtmlUnitDriver . |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
Constructor and Description |
---|
MockMvcClientHttpRequestFactory(MockMvc mockMvc) |
Modifier and Type | Method and Description |
---|---|
MockMvc |
MockMvcBuilder.build()
Build a
MockMvc instance. |
protected MockMvc |
MockMvcBuilderSupport.createMockMvc(Filter[] filters,
MockServletConfig servletConfig,
WebApplicationContext webAppContext,
RequestBuilder defaultRequestBuilder,
List<ResultMatcher> globalResultMatchers,
List<ResultHandler> globalResultHandlers,
List<DispatcherServletCustomizer> dispatcherServletCustomizers) |
Modifier and Type | Method and Description |
---|---|
static WebTestClient.Builder |
MockMvcWebTestClient.bindTo(MockMvc mockMvc)
Begin creating a
WebTestClient by providing an already
initialized MockMvc instance to use as the server. |
Constructor and Description |
---|
MockMvcHttpConnector(MockMvc mockMvc) |
Modifier and Type | Method and Description |
---|---|
static MockMvcWebClientBuilder |
MockMvcWebClientBuilder.mockMvcSetup(MockMvc mockMvc)
Create a new
MockMvcWebClientBuilder based on the supplied
MockMvc instance. |
Constructor and Description |
---|
MockMvcWebClientBuilder(MockMvc mockMvc) |
MockMvcWebConnection(MockMvc mockMvc,
com.gargoylesoftware.htmlunit.WebClient webClient)
Create a new instance that assumes the context path of the application
is
"" (i.e., the root context). |
MockMvcWebConnection(MockMvc mockMvc,
com.gargoylesoftware.htmlunit.WebClient webClient,
String contextPath)
Create a new instance with the specified context path.
|
MockMvcWebConnectionBuilderSupport(MockMvc mockMvc)
Create a new instance using the supplied
MockMvc instance. |
Modifier and Type | Method and Description |
---|---|
static MockMvcHtmlUnitDriverBuilder |
MockMvcHtmlUnitDriverBuilder.mockMvcSetup(MockMvc mockMvc)
Create a new
MockMvcHtmlUnitDriverBuilder based on the supplied
MockMvc instance. |
Constructor and Description |
---|
MockMvcHtmlUnitDriverBuilder(MockMvc mockMvc) |
Modifier and Type | Method and Description |
---|---|
MockMvc |
AbstractMockMvcBuilder.build()
Build a
MockMvc instance. |