Uses of Class
org.springframework.mock.web.MockHttpServletRequest
Packages that use 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
Subclasses of MockHttpServletRequest in org.springframework.mock.webModifier and TypeClassDescriptionclassMock implementation of theMultipartHttpServletRequestinterface. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet that return MockHttpServletRequestModifier and TypeMethodDescriptionRequestBuilder.buildRequest(jakarta.servlet.ServletContext servletContext) Build the request.MvcResult.getRequest()Return the performed request.SmartRequestBuilder.postProcessRequest(MockHttpServletRequest request) Apply request post-processing.Methods in org.springframework.test.web.servlet with parameters of type MockHttpServletRequestModifier and TypeMethodDescriptionSmartRequestBuilder.postProcessRequest(MockHttpServletRequest request) Apply request post-processing. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.assertj
Subclasses with type arguments of type MockHttpServletRequest in org.springframework.test.web.servlet.assertjModifier and TypeClassDescriptionclassAbstractMockHttpServletRequestAssert<SELF extends AbstractMockHttpServletRequestAssert<SELF>>AssertJ assertions that can be applied toMockHttpServletRequest.Methods in org.springframework.test.web.servlet.assertj that return MockHttpServletRequestModifier and TypeMethodDescriptiondefault MockHttpServletRequestMvcTestResult.getRequest()Return the performed request.Constructors in org.springframework.test.web.servlet.assertj with parameters of type MockHttpServletRequestModifierConstructorDescriptionprotectedAbstractMockHttpServletRequestAssert(MockHttpServletRequest request, Class<?> selfType) -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.request
Methods in org.springframework.test.web.servlet.request that return MockHttpServletRequestModifier and TypeMethodDescriptionfinal MockHttpServletRequestAbstractMockHttpServletRequestBuilder.buildRequest(jakarta.servlet.ServletContext servletContext) Build aMockHttpServletRequest.protected MockHttpServletRequestAbstractMockHttpServletRequestBuilder.createServletRequest(jakarta.servlet.ServletContext servletContext) Create a newMockHttpServletRequestbased on the suppliedServletContext.protected final MockHttpServletRequestAbstractMockMultipartHttpServletRequestBuilder.createServletRequest(jakarta.servlet.ServletContext servletContext) Create a newMockMultipartHttpServletRequestbased on the suppliedServletContextand theMockMultipartFilesadded to this builder.AbstractMockHttpServletRequestBuilder.postProcessRequest(MockHttpServletRequest request) RequestPostProcessor.postProcessRequest(MockHttpServletRequest request) Post-process the givenMockHttpServletRequestafter its creation and initialization through aMockHttpServletRequestBuilder.Methods in org.springframework.test.web.servlet.request with parameters of type MockHttpServletRequestModifier and TypeMethodDescriptionAbstractMockHttpServletRequestBuilder.postProcessRequest(MockHttpServletRequest request) RequestPostProcessor.postProcessRequest(MockHttpServletRequest request) Post-process the givenMockHttpServletRequestafter its creation and initialization through aMockHttpServletRequestBuilder. -
Uses of MockHttpServletRequest in org.springframework.test.web.servlet.result
Methods in org.springframework.test.web.servlet.result with parameters of type MockHttpServletRequestModifier and TypeMethodDescriptionprotected final MultiValueMap<String, String> PrintingResultHandler.getParamsMultiValueMap(MockHttpServletRequest request) protected final HttpHeadersPrintingResultHandler.getRequestHeaders(MockHttpServletRequest request) PrintingResultHandler.getSessionAttributes(MockHttpServletRequest request) protected voidPrintingResultHandler.printRequest(MockHttpServletRequest request) Print the request.