Uses of Class
org.springframework.test.web.servlet.setup.RouterFunctionMockMvcBuilder
Packages that use RouterFunctionMockMvcBuilder
Package
Description
Contains built-in
MockMvcBuilder
implementations.-
Uses of RouterFunctionMockMvcBuilder in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup that return RouterFunctionMockMvcBuilderModifier and TypeMethodDescriptionRouterFunctionMockMvcBuilder.addInterceptors
(HandlerInterceptor... interceptors) Add interceptors mapped to all incoming requests.RouterFunctionMockMvcBuilder.addMappedInterceptors
(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors mapped to a set of path patterns.static RouterFunctionMockMvcBuilder
MockMvcBuilders.routerFunctions
(RouterFunction<?>... routerFunctions) Build aMockMvc
instance by registering one or moreRouterFunction
instances and configuring Spring MVC infrastructure programmatically.RouterFunctionMockMvcBuilder.setAsyncRequestTimeout
(long timeout) Specify the timeout value for async execution.RouterFunctionMockMvcBuilder.setCustomHandlerMapping
(Supplier<RouterFunctionMapping> factory) Configure the factory to create a customRequestMappingHandlerMapping
.RouterFunctionMockMvcBuilder.setHandlerExceptionResolvers
(List<HandlerExceptionResolver> exceptionResolvers) Set the HandlerExceptionResolver types to use as a list.RouterFunctionMockMvcBuilder.setHandlerExceptionResolvers
(HandlerExceptionResolver... exceptionResolvers) Set the HandlerExceptionResolver types to use as an array.RouterFunctionMockMvcBuilder.setMessageConverters
(HttpMessageConverter<?>... messageConverters) Set the message converters to use in argument resolvers and in return value handlers, which support reading and/or writing to the body of the request and response.RouterFunctionMockMvcBuilder.setPatternParser
(PathPatternParser parser) Enable URL path matching with parsedPathPatterns
instead of String pattern matching with aPathMatcher
.RouterFunctionMockMvcBuilder.setSingleView
(View view) Set up a singleViewResolver
that always returns the provided view instance.RouterFunctionMockMvcBuilder.setViewResolvers
(ViewResolver... resolvers) Set up view resolution with the givenViewResolvers
.