Interface WebTestClient.ControllerSpec
- All Superinterfaces:
- WebTestClient.MockServerSpec<WebTestClient.ControllerSpec>
- Enclosing interface:
- WebTestClient
public static interface WebTestClient.ControllerSpec
extends WebTestClient.MockServerSpec<WebTestClient.ControllerSpec>
Specification for customizing controller configuration equivalent to, and
 internally delegating to, a 
WebFluxConfigurer.- 
Method SummaryModifier and TypeMethodDescriptionargumentResolvers(Consumer<ArgumentResolverConfigurer> configurer) Configure resolvers for custom controller method arguments.Customize content type resolution.controllerAdvice(Object... controllerAdvice) Register one or moreControllerAdviceinstances to be used in tests (specifiedClasswill be turned into instance).corsMappings(Consumer<CorsRegistry> consumer) Configure CORS support.formatters(Consumer<FormatterRegistry> consumer) Register formatters and converters to use for type conversion.httpMessageCodecs(Consumer<ServerCodecConfigurer> configurer) Configure custom HTTP message readers and writers or override built-in ones.pathMatching(Consumer<PathMatchConfigurer> consumer) Configure path matching options.Configure a global Validator.viewResolvers(Consumer<ViewResolverRegistry> consumer) Configure view resolution.Methods inherited from interface org.springframework.test.web.reactive.server.WebTestClient.MockServerSpecapply, build, configureClient, webFilter, webSessionManager
- 
Method Details- 
controllerAdviceRegister one or moreControllerAdviceinstances to be used in tests (specifiedClasswill be turned into instance).
- 
contentTypeResolverWebTestClient.ControllerSpec contentTypeResolver(Consumer<RequestedContentTypeResolverBuilder> consumer) Customize content type resolution.
- 
corsMappingsConfigure CORS support.
- 
pathMatchingConfigure path matching options.
- 
argumentResolversConfigure resolvers for custom controller method arguments.
- 
httpMessageCodecsConfigure custom HTTP message readers and writers or override built-in ones.
- 
formattersRegister formatters and converters to use for type conversion.
- 
validatorConfigure a global Validator.- See Also:
 
- 
viewResolversConfigure view resolution.
 
-