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
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier 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 @Nullable [] 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 MockMvcWebTestClient.MockMvcServerSpecalwaysExpect, apply, build, configureClient, defaultRequest, dispatcherServletCustomizer, dispatchOptions, filter, filters
- 
Method Details- 
messageConvertersMockMvcWebTestClient.RouterFunctionSpec messageConverters(HttpMessageConverter<?>... messageConverters) Set the message converters to use.This is delegated to RouterFunctionMockMvcBuilder.setMessageConverters(HttpMessageConverter[]).
- 
interceptorsAdd global interceptors.This is delegated to RouterFunctionMockMvcBuilder.addInterceptors(HandlerInterceptor...).
- 
mappedInterceptorsMockMvcWebTestClient.RouterFunctionSpec mappedInterceptors(String @Nullable [] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns.This is delegated to RouterFunctionMockMvcBuilder.addMappedInterceptors(String[], HandlerInterceptor...).
- 
asyncRequestTimeoutSpecify the timeout value for async execution.This is delegated to RouterFunctionMockMvcBuilder.setAsyncRequestTimeout(long).
- 
handlerExceptionResolversMockMvcWebTestClient.RouterFunctionSpec handlerExceptionResolvers(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.This is delegated to RouterFunctionMockMvcBuilder.setHandlerExceptionResolvers(HandlerExceptionResolver...).
- 
viewResolversSet up view resolution.This is delegated to RouterFunctionMockMvcBuilder.setViewResolvers(ViewResolver...).
- 
singleViewSet up a singleViewResolverwith a fixed view.This is delegated to RouterFunctionMockMvcBuilder.setSingleView(View).
- 
patternParserEnable URL path matching with parsedPathPatterns.This is delegated to RouterFunctionMockMvcBuilder.setPatternParser(PathPatternParser).
 
-