From db7d47704a3435ae4b85412659f10d5d07543c3b Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 27 Mar 2018 13:26:24 -0700 Subject: [PATCH] Document @WebFluxTest limitation with RouterFunction Fixes gh-10683 --- .../src/main/asciidoc/spring-boot-features.adoc | 4 ++++ 1 file changed, 4 insertions(+) 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 <>.