Replies: 1 comment 2 replies
|
Someone saying, "I'm using DGS WebFlux and unit testing data fetchers without any errors," would also be helpful! |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there anyone out there using DGS WebFlux and writing unit tests for the data fetcher? How did you do it?
Using Java 17, Spring Boot 2.7.3, DGS 5.2.2.
Tried the following after reading the docs (and Google searches for the WebFlux differences) and ended up with this.
Works from a running service, but if I try to run unit tests, I get this error no matter what tweaks I try. This is about as simple a test class as I could make for demonstration purposes.
Relevant data fetcher code:
What am I missing?
All reactions