Class MockHttpServletRequestBuilder

All Implemented Interfaces:
Mergeable, ConfigurableSmartRequestBuilder<MockHttpServletRequestBuilder>, RequestBuilder, SmartRequestBuilder
Direct Known Subclasses:
MockMultipartHttpServletRequestBuilder

public class MockHttpServletRequestBuilder extends AbstractMockHttpServletRequestBuilder<MockHttpServletRequestBuilder>
Default builder for MockHttpServletRequest required as input to perform requests in MockMvc.

Application tests will typically access this builder through the static factory methods in MockMvcRequestBuilders.

This class is not open for extension. To apply custom initialization to the created MockHttpServletRequest, please use the with(RequestPostProcessor) extension point.

Since:
3.2
Author:
Rossen Stoyanchev, Juergen Hoeller, Arjen Poutsma, Sam Brannen, Kamill Sokol