Replies: 1 comment 1 reply
-
Someone saying, "I'm using DGS WebFlux and unit testing data fetchers without any errors," would also be helpful! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions