Uses of Interface
org.springframework.test.web.reactive.server.WebTestClient.ControllerSpec
-
Uses of WebTestClient.ControllerSpec in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionWebTestClient.ControllerSpec.argumentResolvers
(Consumer<ArgumentResolverConfigurer> configurer) Configure resolvers for custom controller method arguments.static WebTestClient.ControllerSpec
WebTestClient.bindToController
(Object... controllers) Use this server setup to test one@Controller
at a time.WebTestClient.ControllerSpec.blockingExecution
(Consumer<BlockingExecutionConfigurer> consumer) Configure blocking execution options.WebTestClient.ControllerSpec.contentTypeResolver
(Consumer<RequestedContentTypeResolverBuilder> consumer) Customize content type resolution.WebTestClient.ControllerSpec.controllerAdvice
(Object... controllerAdvice) Register one or moreControllerAdvice
instances to be used in tests (specifiedClass
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.Configure a global Validator.WebTestClient.ControllerSpec.viewResolvers
(Consumer<ViewResolverRegistry> consumer) Configure view resolution.