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
pull/29975/head
Brian Clozel 3 years ago
parent 5f67546534
commit b17412eb38

@ -463,8 +463,8 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it
</dependency> </dependency>
<!-- Unless already present in the compile scope --> <!-- Unless already present in the compile scope -->
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-webflux</artifactId> <artifactId>spring-boot-starter-webflux</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -476,7 +476,7 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it
dependencies { dependencies {
testImplementation("org.springframework.graphql:spring-graphql-test") testImplementation("org.springframework.graphql:spring-graphql-test")
// Unless already present in the implementation configuration // Unless already present in the implementation configuration
testImplementation("org.springframework:spring-webflux") testImplementation("org.springframework.boot:spring-boot-starter-webflux")
} }
---- ----

Loading…
Cancel
Save