This message was deleted.
# spring
s
This message was deleted.
😶 2
o
I suggest using wiremock to mock API 😉 The code (pseudocode) should look like this:
Copy code
when request is made to endpoint /api/token with given body, respond with the token
Then you will test that the rest template serializes / deserializes json correctly.
w
Wiremock or mockserver are both good for that