From 404f22e5f91ab6f343bc804687c17514fbf3f3e0 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 28 Mar 2018 09:51:54 +0200 Subject: [PATCH] Polish "Document @WebFluxTest limitation with RouterFunction" See gh-10683 --- .../src/main/asciidoc/spring-boot-features.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 0fe65b0b40..a2afc0fd30 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,9 +6534,9 @@ 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`. +NOTE: `@WebFluxTest` cannot detect routes registered via the functional web framework. For +testing `RouterFunction` beans in the context, consider importing your `RouterFunction` +yourself via `@Import` or using `@SpringBootTest`. TIP: Sometimes writing Spring WebFlux tests is not enough; Spring Boot can help you run <