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
This commit is contained in:
@@ -463,8 +463,8 @@ Spring GraphQL offers a dedicated testing support module; you'll need to add it
|
||||
</dependency>
|
||||
<!-- Unless already present in the compile scope -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webflux</artifactId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-webflux</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@@ -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")
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user