From b17412eb3851117216f4869ca33d9b7e6762501d Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 10 Jan 2022 10:10:10 +0100 Subject: [PATCH] Fix Auto-configured Spring GraphQL Tests docs Prior to this change, the reference docs would point to "spring-webflux" as the required additional testing dependency to get `WebGraphQlTester` support in Spring Boot tests. While this is enough for `WebEnvironment.MOCK` tests, we need an actual HTTP client for `WebEnvironment.RANDOM_PORT` tests. This commit amends this part of the documentation to recommend the "spring-boot-starter-webflux" dependency in all cases. Fixes gh-29250 --- .../src/docs/asciidoc/features/testing.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc index c54565f755..7e7e084460 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc @@ -463,8 +463,8 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it - org.springframework - spring-webflux + org.springframework.boot + spring-boot-starter-webflux test @@ -476,7 +476,7 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it dependencies { testImplementation("org.springframework.graphql:spring-graphql-test") // Unless already present in the implementation configuration - testImplementation("org.springframework:spring-webflux") + testImplementation("org.springframework.boot:spring-boot-starter-webflux") } ----