Uses of Interface
org.springframework.test.web.servlet.RequestBuilder
Packages that use RequestBuilder
Package
Description
Contains server-side support for testing Spring MVC applications.
AssertJ support for MockMvc.
Support for testing Spring MVC applications via
 
WebTestClient
 with MockMvc for server request
 handling.Contains built-in 
RequestBuilder
 implementations.Contains built-in 
MockMvcBuilder implementations.- 
Uses of RequestBuilder in org.springframework.test.web.servletSubinterfaces of RequestBuilder in org.springframework.test.web.servletModifier and TypeInterfaceDescriptioninterfaceExtended variant of aRequestBuilderthat applies itsorg.springframework.test.web.servlet.request.RequestPostProcessorsas a separate step from thebuildRequest(jakarta.servlet.ServletContext)method.Methods in org.springframework.test.web.servlet with parameters of type RequestBuilderModifier and TypeMethodDescriptionprotected final MockMvcMockMvcBuilderSupport.createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, Charset defaultResponseCharacterEncoding, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers) Delegates toMockMvcBuilderSupport.createMockMvc(Filter[], MockServletConfig, WebApplicationContext, RequestBuilder, List, List, List)for creation of theMockMvcinstance and configures that instance with the supplieddefaultResponseCharacterEncoding.protected final MockMvcMockMvcBuilderSupport.createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers) MockMvc.perform(RequestBuilder requestBuilder) Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.
- 
Uses of RequestBuilder in org.springframework.test.web.servlet.assertjClasses in org.springframework.test.web.servlet.assertj that implement RequestBuilderModifier and TypeClassDescriptionfinal classA builder forMockMultipartHttpServletRequestthat supports AssertJ.final classA builder forMockHttpServletRequestthat supports AssertJ.Methods in org.springframework.test.web.servlet.assertj with parameters of type RequestBuilderModifier and TypeMethodDescriptionMockMvcTester.perform(RequestBuilder requestBuilder) Perform a request using the givenRequestBuilderand return aresultthat can be used with standardAssertJassertions.
- 
Uses of RequestBuilder in org.springframework.test.web.servlet.clientMethods in org.springframework.test.web.servlet.client with parameters of type RequestBuilderModifier and TypeMethodDescription<T extends B>
 TMockMvcWebTestClient.MockMvcServerSpec.defaultRequest(RequestBuilder requestBuilder) Define default request properties that should be merged into all performed requests such that input from the client request override the default properties defined here.
- 
Uses of RequestBuilder in org.springframework.test.web.servlet.requestSubinterfaces of RequestBuilder in org.springframework.test.web.servlet.requestModifier and TypeInterfaceDescriptioninterfaceAn extension ofSmartRequestBuilderthat can be configured withRequestPostProcessors.Classes in org.springframework.test.web.servlet.request that implement RequestBuilderModifier and TypeClassDescriptionclassBase builder forMockHttpServletRequestrequired as input to perform requests inMockMvc.classAbstractMockMultipartHttpServletRequestBuilder<B extends AbstractMockMultipartHttpServletRequestBuilder<B>>Base builder forMockMultipartHttpServletRequest.classDefault builder forMockHttpServletRequestrequired as input to perform requests inMockMvc.classDefault builder forMockMultipartHttpServletRequest.Methods in org.springframework.test.web.servlet.request that return RequestBuilderModifier and TypeMethodDescriptionstatic RequestBuilderMockMvcRequestBuilders.asyncDispatch(MvcResult mvcResult) Create aRequestBuilderfor an async dispatch from theMvcResultof the request that started async processing.
- 
Uses of RequestBuilder in org.springframework.test.web.servlet.setupMethods in org.springframework.test.web.servlet.setup with parameters of type RequestBuilderModifier and TypeMethodDescriptionfinal <T extends B>
 TAbstractMockMvcBuilder.defaultRequest(RequestBuilder requestBuilder) <T extends B>
 TConfigurableMockMvcBuilder.defaultRequest(RequestBuilder requestBuilder) Define default request properties that should be merged into all performed requests.