Uses of Class
org.springframework.test.web.servlet.setup.RouterFunctionMockMvcBuilder
Packages that use RouterFunctionMockMvcBuilder
Package
Description
Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.Contains built-in
MockMvcBuilder implementations.-
Uses of RouterFunctionMockMvcBuilder in org.springframework.test.web.servlet.client
Subinterfaces with type arguments of type RouterFunctionMockMvcBuilder in org.springframework.test.web.servlet.clientModifier and TypeInterfaceDescriptionstatic interfaceExtension ofRestTestClient.Builderfor tests against а RouterFunction MockMvc setup. -
Uses of RouterFunctionMockMvcBuilder in org.springframework.test.web.servlet.setup
Subclasses with type arguments of type RouterFunctionMockMvcBuilder in org.springframework.test.web.servlet.setupModifier and TypeClassDescriptionclassAMockMvcBuilderthat acceptsRouterFunctionregistrations thus allowing full control over the instantiation and initialization of router functions and their dependencies similar to plain unit tests, and also making it possible to test one function at a time.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 @Nullable [] pathPatterns, HandlerInterceptor... interceptors) Add interceptors mapped to a set of path patterns.static RouterFunctionMockMvcBuilderMockMvcBuilders.routerFunctions(RouterFunction<?>... routerFunctions) Build aMockMvcinstance by registering one or moreRouterFunctioninstances 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(@Nullable PathPatternParser parser) Configure the parser to use forPathPatterns.RouterFunctionMockMvcBuilder.setSingleView(View view) Set up a singleViewResolverthat always returns the provided view instance.RouterFunctionMockMvcBuilder.setViewResolvers(ViewResolver... resolvers) Set up view resolution with the givenViewResolvers.