public static interface WebTestClient.ControllerSpec extends WebTestClient.MockServerSpec<WebTestClient.ControllerSpec>
WebFluxConfigurer.| Modifier and Type | Method and Description | 
|---|---|
WebTestClient.ControllerSpec | 
argumentResolvers(Consumer<ArgumentResolverConfigurer> configurer)
Configure resolvers for custom controller method arguments. 
 | 
WebTestClient.ControllerSpec | 
contentTypeResolver(Consumer<RequestedContentTypeResolverBuilder> consumer)
Customize content type resolution. 
 | 
WebTestClient.ControllerSpec | 
controllerAdvice(Object... controllerAdvice)
Register one or more  
ControllerAdvice
 instances to be used in tests (specified Class will be turned into instance). | 
WebTestClient.ControllerSpec | 
corsMappings(Consumer<CorsRegistry> consumer)
Configure CORS support. 
 | 
WebTestClient.ControllerSpec | 
formatters(Consumer<FormatterRegistry> consumer)
Register formatters and converters to use for type conversion. 
 | 
WebTestClient.ControllerSpec | 
httpMessageCodecs(Consumer<ServerCodecConfigurer> configurer)
Configure custom HTTP message readers and writers or override built-in ones. 
 | 
WebTestClient.ControllerSpec | 
pathMatching(Consumer<PathMatchConfigurer> consumer)
Configure path matching options. 
 | 
WebTestClient.ControllerSpec | 
validator(Validator validator)
Configure a global Validator. 
 | 
WebTestClient.ControllerSpec | 
viewResolvers(Consumer<ViewResolverRegistry> consumer)
Configure view resolution. 
 | 
apply, build, configureClient, webFilter, webSessionManagerWebTestClient.ControllerSpec controllerAdvice(Object... controllerAdvice)
ControllerAdvice
 instances to be used in tests (specified Class will be turned into instance).WebTestClient.ControllerSpec contentTypeResolver(Consumer<RequestedContentTypeResolverBuilder> consumer)
WebTestClient.ControllerSpec corsMappings(Consumer<CorsRegistry> consumer)
WebTestClient.ControllerSpec pathMatching(Consumer<PathMatchConfigurer> consumer)
WebTestClient.ControllerSpec argumentResolvers(Consumer<ArgumentResolverConfigurer> configurer)
WebTestClient.ControllerSpec httpMessageCodecs(Consumer<ServerCodecConfigurer> configurer)
WebTestClient.ControllerSpec formatters(Consumer<FormatterRegistry> consumer)
WebTestClient.ControllerSpec validator(Validator validator)
WebFluxConfigurer.getValidator()WebTestClient.ControllerSpec viewResolvers(Consumer<ViewResolverRegistry> consumer)