Uses of Interface
org.springframework.test.web.servlet.client.MockMvcWebTestClient.RouterFunctionSpec
Package
Description
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.-
Uses of MockMvcWebTestClient.RouterFunctionSpec in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.RouterFunctionSpec.asyncRequestTimeout
(long timeout) Specify the timeout value for async execution.MockMvcWebTestClient.bindToRouterFunction
(RouterFunction<?>... routerFunctions) Begin creating aWebTestClient
by providing theRouterFunction
instance(s) to handle requests with.MockMvcWebTestClient.RouterFunctionSpec.handlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use.MockMvcWebTestClient.RouterFunctionSpec.interceptors
(HandlerInterceptor... interceptors) Add global interceptors.MockMvcWebTestClient.RouterFunctionSpec.mappedInterceptors
(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns.MockMvcWebTestClient.RouterFunctionSpec.messageConverters
(HttpMessageConverter<?>... messageConverters) Set the message converters to use.MockMvcWebTestClient.RouterFunctionSpec.patternParser
(PathPatternParser parser) Enable URL path matching with parsedPathPatterns
.MockMvcWebTestClient.RouterFunctionSpec.singleView
(View view) Set up a singleViewResolver
with a fixed view.MockMvcWebTestClient.RouterFunctionSpec.viewResolvers
(ViewResolver... resolvers) Set up view resolution.