graphql-spqr-samples icon indicating copy to clipboard operation
graphql-spqr-samples copied to clipboard

Testing service classes

Open cmdavinder opened this issue 6 years ago • 2 comments

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.

cmdavinder avatar Oct 03 '18 16:10 cmdavinder

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.

BaldyLocks avatar Oct 03 '18 16:10 BaldyLocks

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?

luizpaulofranz avatar Sep 17 '19 12:09 luizpaulofranz