Class MockHttpServletRequestBuilder

All Implemented Interfaces:
Mergeable, ConfigurableSmartRequestBuilder<MockHttpServletRequestBuilder>, RequestBuilder, SmartRequestBuilder

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 AbstractMockHttpServletRequestBuilder.with(RequestPostProcessor) extension point.

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