Reputation: 63
I have created a spring boot rest client, which basically consumes a rest service. I want to write a junit test case to validate my rest client. I was hoping to intercept the rest request somehow in the junit test case and check if the context in the URL, path parameters, query param and body is correct. i just want to confirm, if anyone uses the rest client, it will make the proper calls to the rest services.
Upvotes: 1
Views: 3206
Reputation: 42431
Here are some approaches you can try:
You can read this article for example
Upvotes: 2