Interface MockMvcWebTestClient.RouterFunctionSpec
- All Superinterfaces:
 MockMvcWebTestClient.MockMvcServerSpec<MockMvcWebTestClient.RouterFunctionSpec>
- Enclosing interface:
 - MockMvcWebTestClient
 
public static interface MockMvcWebTestClient.RouterFunctionSpec
extends MockMvcWebTestClient.MockMvcServerSpec<MockMvcWebTestClient.RouterFunctionSpec>
Specification for configuring 
MockMvc to test one or more
 router functions
 directly, and a simple facade around RouterFunctionMockMvcBuilder.- Since:
 - 6.2
 
- 
Method Summary
Modifier and TypeMethodDescriptionasyncRequestTimeout(long timeout) Specify the timeout value for async execution.handlerExceptionResolvers(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.interceptors(HandlerInterceptor... interceptors) Add global interceptors.mappedInterceptors(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns.messageConverters(HttpMessageConverter<?>... messageConverters) Set the message converters to use.patternParser(PathPatternParser parser) Enable URL path matching with parsedPathPatterns.singleView(View view) Set up a singleViewResolverwith a fixed view.viewResolvers(ViewResolver... resolvers) Set up view resolution.Methods inherited from interface org.springframework.test.web.servlet.client.MockMvcWebTestClient.MockMvcServerSpec
alwaysExpect, apply, build, configureClient, defaultRequest, dispatcherServletCustomizer, dispatchOptions, filter, filters 
- 
Method Details
- 
messageConverters
MockMvcWebTestClient.RouterFunctionSpec messageConverters(HttpMessageConverter<?>... messageConverters) Set the message converters to use.This is delegated to
RouterFunctionMockMvcBuilder.setMessageConverters(HttpMessageConverter[]). - 
interceptors
Add global interceptors.This is delegated to
RouterFunctionMockMvcBuilder.addInterceptors(HandlerInterceptor...). - 
mappedInterceptors
MockMvcWebTestClient.RouterFunctionSpec mappedInterceptors(@Nullable String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns.This is delegated to
RouterFunctionMockMvcBuilder.addMappedInterceptors(String[], HandlerInterceptor...). - 
asyncRequestTimeout
Specify the timeout value for async execution.This is delegated to
RouterFunctionMockMvcBuilder.setAsyncRequestTimeout(long). - 
handlerExceptionResolvers
MockMvcWebTestClient.RouterFunctionSpec handlerExceptionResolvers(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.This is delegated to
RouterFunctionMockMvcBuilder.setHandlerExceptionResolvers(HandlerExceptionResolver...). - 
viewResolvers
Set up view resolution.This is delegated to
RouterFunctionMockMvcBuilder.setViewResolvers(ViewResolver...). - 
singleView
Set up a singleViewResolverwith a fixed view.This is delegated to
RouterFunctionMockMvcBuilder.setSingleView(View). - 
patternParser
Enable URL path matching with parsedPathPatterns.This is delegated to
RouterFunctionMockMvcBuilder.setPatternParser(PathPatternParser). 
 -