Package | Description |
---|---|
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
Modifier and Type | Method and Description |
---|---|
B |
ConfigurableSmartRequestBuilder.with(RequestPostProcessor requestPostProcessor)
Add the given
RequestPostProcessor . |
MockHttpServletRequestBuilder |
MockHttpServletRequestBuilder.with(RequestPostProcessor postProcessor)
An extension point for further initialization of
MockHttpServletRequest
in ways not built directly into the MockHttpServletRequestBuilder . |
Modifier and Type | Method and Description |
---|---|
RequestPostProcessor |
SharedHttpSessionConfigurer.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext context) |
default RequestPostProcessor |
MockMvcConfigurer.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext context)
Invoked when the MockMvc instance is about to be created with the MockMvc
builder and the Spring WebApplicationContext that will be passed to the
DispatcherServlet . |
RequestPostProcessor |
MockMvcConfigurerAdapter.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext cxt) |