Uses of Class
org.springframework.mock.web.MockHttpServletRequest
Package
Description
A comprehensive set of Servlet API 6.0 mock objects, targeted at usage with
Spring's Web MVC framework.
Contains server-side support for testing Spring MVC applications.
AssertJ support for MockMvc.
Contains built-in
RequestBuilder
implementations.Contains built-in
ResultMatcher
and ResultHandler
implementations.-
Uses of MockHttpServletRequest in org.springframework.mock.web
Modifier and TypeClassDescriptionclass
Mock implementation of theMultipartHttpServletRequest
interface. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet
Modifier and TypeMethodDescriptionRequestBuilder.buildRequest
(ServletContext servletContext) Build the request.MvcResult.getRequest()
Return the performed request.SmartRequestBuilder.postProcessRequest
(MockHttpServletRequest request) Apply request post-processing.Modifier and TypeMethodDescriptionSmartRequestBuilder.postProcessRequest
(MockHttpServletRequest request) Apply request post-processing. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.assertj
Modifier and TypeMethodDescriptiondefault MockHttpServletRequest
MvcTestResult.getRequest()
Return the performed request.ModifierConstructorDescriptionprotected
AbstractMockHttpServletRequestAssert
(MockHttpServletRequest request, Class<?> selfType) -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.request
Modifier and TypeMethodDescriptionfinal MockHttpServletRequest
AbstractMockHttpServletRequestBuilder.buildRequest
(ServletContext servletContext) Build aMockHttpServletRequest
.protected MockHttpServletRequest
AbstractMockHttpServletRequestBuilder.createServletRequest
(ServletContext servletContext) Create a newMockHttpServletRequest
based on the suppliedServletContext
.protected final MockHttpServletRequest
AbstractMockMultipartHttpServletRequestBuilder.createServletRequest
(ServletContext servletContext) Create a newMockMultipartHttpServletRequest
based on the suppliedServletContext
and theMockMultipartFiles
added to this builder.AbstractMockHttpServletRequestBuilder.postProcessRequest
(MockHttpServletRequest request) RequestPostProcessor.postProcessRequest
(MockHttpServletRequest request) Post-process the givenMockHttpServletRequest
after its creation and initialization through aMockHttpServletRequestBuilder
.Modifier and TypeMethodDescriptionAbstractMockHttpServletRequestBuilder.postProcessRequest
(MockHttpServletRequest request) RequestPostProcessor.postProcessRequest
(MockHttpServletRequest request) Post-process the givenMockHttpServletRequest
after its creation and initialization through aMockHttpServletRequestBuilder
. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.result
Modifier and TypeMethodDescriptionprotected final MultiValueMap<String,
String> PrintingResultHandler.getParamsMultiValueMap
(MockHttpServletRequest request) protected final HttpHeaders
PrintingResultHandler.getRequestHeaders
(MockHttpServletRequest request) PrintingResultHandler.getSessionAttributes
(MockHttpServletRequest request) protected void
PrintingResultHandler.printRequest
(MockHttpServletRequest request) Print the request.