diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index eabd17e413..0fe65b0b40 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -6534,6 +6534,10 @@ example shows a class that uses both `@WebFluxTest` and a `WebTestClient`: A list of the auto-configuration that is enabled by `@WebFluxTest` can be <>. +NOTE: `@WebFluxTest` cannot be used for testing routes registered via the functional +web framework. For testing `RouterFunction` beans in the context, consider using +`@SpringBootTest`. + TIP: Sometimes writing Spring WebFlux tests is not enough; Spring Boot can help you run <>.