graphql-spqr-samples
graphql-spqr-samples copied to clipboard
Testing service classes
Hi there,
Thanks for posting samples. I am wondering if there is a way to test Service classes with graphql-spqr annotations? Are there any examples for it?
Thanks.
I'm not entirely sure I get your question? I mean service methods can be unit tested as any other methods and API calls can be tested like any other Spring MVC controller using MockMvc or externally when deployed if that would be the preference. Please clarify further.
I'm facing troubles when I trie to test graphql end point served by spqr, my mockMvc doesn't work, there is some default configuration needed?