Package | Description |
---|---|
org.springframework.mock.web |
A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with
Spring's Web MVC framework.
|
org.springframework.test.web.servlet |
Contains server-side support for testing Spring MVC applications.
|
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.test.web.servlet.result |
Contains built-in
ResultMatcher and ResultHandler implementations. |
Modifier and Type | Class and Description |
---|---|
class |
MockMultipartHttpServletRequest
Mock implementation of the
MultipartHttpServletRequest interface. |
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequest |
RequestBuilder.buildRequest(ServletContext servletContext)
Build the request.
|
MockHttpServletRequest |
MvcResult.getRequest()
Return the performed request.
|
MockHttpServletRequest |
SmartRequestBuilder.postProcessRequest(MockHttpServletRequest request)
Apply request post processing.
|
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequest |
SmartRequestBuilder.postProcessRequest(MockHttpServletRequest request)
Apply request post processing.
|
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequest |
MockHttpServletRequestBuilder.buildRequest(ServletContext servletContext)
Build a
MockHttpServletRequest . |
protected MockHttpServletRequest |
MockHttpServletRequestBuilder.createServletRequest(ServletContext servletContext)
Create a new
MockHttpServletRequest based on the supplied
ServletContext . |
protected MockHttpServletRequest |
MockMultipartHttpServletRequestBuilder.createServletRequest(ServletContext servletContext)
Create a new
MockMultipartHttpServletRequest based on the
supplied ServletContext and the MockMultipartFiles
added to this builder. |
MockHttpServletRequest |
RequestPostProcessor.postProcessRequest(MockHttpServletRequest request)
Post-process the given
MockHttpServletRequest after its creation
and initialization through a MockHttpServletRequestBuilder . |
MockHttpServletRequest |
MockHttpServletRequestBuilder.postProcessRequest(MockHttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
MockHttpServletRequest |
RequestPostProcessor.postProcessRequest(MockHttpServletRequest request)
Post-process the given
MockHttpServletRequest after its creation
and initialization through a MockHttpServletRequestBuilder . |
MockHttpServletRequest |
MockHttpServletRequestBuilder.postProcessRequest(MockHttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
protected MultiValueMap<String,String> |
PrintingResultHandler.getParamsMultiValueMap(MockHttpServletRequest request) |
protected HttpHeaders |
PrintingResultHandler.getRequestHeaders(MockHttpServletRequest request) |
protected Map<String,Object> |
PrintingResultHandler.getSessionAttributes(MockHttpServletRequest request) |
protected void |
PrintingResultHandler.printRequest(MockHttpServletRequest request)
Print the request.
|