https://kotlinlang.org logo
#spring
Title
# spring
s

Slackbot

08/27/2022, 3:05 PM
This message was deleted.
😶 2
o

Olek Brzozowski

08/27/2022, 4:34 PM
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

wakingrufus

08/28/2022, 1:50 AM
Wiremock or mockserver are both good for that
5 Views