# Uses of Interface
org.springframework.test.web.reactive.server.WebTestClient.ControllerSpec

Packages that use WebTestClient.ControllerSpec
Package
Description
org.springframework.test.web.reactive.server
Support for testing Spring WebFlux server endpoints via `WebTestClient`.

## Uses of WebTestClient.ControllerSpec in org.springframework.test.web.reactive.server

Methods in org.springframework.test.web.reactive.server that return WebTestClient.ControllerSpec
Modifier and Type
Method
Description
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`argumentResolvers(Consumer<org.springframework.web.reactive.result.method.annotation.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`
WebTestClient.ControllerSpec.`blockingExecution(Consumer<org.springframework.web.reactive.config.BlockingExecutionConfigurer> consumer)`
Configure blocking execution options.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`contentTypeResolver(Consumer<org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder> consumer)`
Customize content type resolution.
`WebTestClient.ControllerSpec`
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`
WebTestClient.ControllerSpec.`corsMappings(Consumer<org.springframework.web.reactive.config.CorsRegistry> consumer)`
Configure CORS support.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`formatters(Consumer<org.springframework.format.FormatterRegistry> consumer)`
Register formatters and converters to use for type conversion.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`httpMessageCodecs(Consumer<org.springframework.http.codec.ServerCodecConfigurer> configurer)`
Configure custom HTTP message readers and writers or override built-in ones.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`pathMatching(Consumer<org.springframework.web.reactive.config.PathMatchConfigurer> consumer)`
Configure path matching options.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`validator(org.springframework.validation.Validator validator)`
Configure a global Validator.
`WebTestClient.ControllerSpec`
WebTestClient.ControllerSpec.`viewResolvers(Consumer<org.springframework.web.reactive.config.ViewResolverRegistry> consumer)`
Configure view resolution.