Uses of Interface
org.springframework.test.web.servlet.RequestBuilder
Packages that use RequestBuilder
Package
Description
Contains server-side support for testing Spring MVC applications.
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.servlet
Subinterfaces 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.client
Methods 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.request
Subinterfaces 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 TypeClassDescriptionclassDefault 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.setup
Methods 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.