Skip to content

Commit 404f22e

Browse files
committed
Polish "Document @WebFluxTest limitation with RouterFunction"
See gh-10683
1 parent db7d477 commit 404f22e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -6534,9 +6534,9 @@ example shows a class that uses both `@WebFluxTest` and a `WebTestClient`:
65346534
A list of the auto-configuration that is enabled by `@WebFluxTest` can be
65356535
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
65366536

6537-
NOTE: `@WebFluxTest` cannot be used for testing routes registered via the functional
6538-
web framework. For testing `RouterFunction` beans in the context, consider using
6539-
`@SpringBootTest`.
6537+
NOTE: `@WebFluxTest` cannot detect routes registered via the functional web framework. For
6538+
testing `RouterFunction` beans in the context, consider importing your `RouterFunction`
6539+
yourself via `@Import` or using `@SpringBootTest`.
65406540

65416541
TIP: Sometimes writing Spring WebFlux tests is not enough; Spring Boot can help you run
65426542
<<boot-features-testing-spring-boot-applications-testing-with-running-server,

0 commit comments

Comments
 (0)