'GraphQLTestTemplate for GraphQL 12 reactive application

I upgraded GraphQL to 12.0.2 for a Spring Boot Webflux application and the integration tests started to fail because bean GraphQLTestTemplate couldn't be found.

I checked GraphQLTestAutoConfiguration and in version 12 it has a new condition

@ConditionalOnWebApplication(type = Type.SERVLET)

In GraphQL versions prior to 12 this condition was limited only to

@ConditionalOnWebApplication

without specifying the type, which allowed me to create integration tests and validate the response. I can modify the tests to use the reactive WebClient but before doing that I want to double check if there is a GraphQL solution for integration tests on reactive endpoints which I might have missed.

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source