https://linen.dev logo
#general
Title
# general
s

Scott Cumming

08/18/2023, 11:31 AM
hi there. in a unit test, i want to call a stubbed api method twice.. but on each iteration I'd like it to return a different body. How do I set this up please?
m

Mark Gerrard

08/18/2023, 12:16 PM
Hi Scott You could use scenarios for this: https://wiremock.org/docs/stateful-behaviour/
s

Scott Cumming

08/18/2023, 12:33 PM
works a treat.. thanks👍
m

Mark Gerrard

08/18/2023, 12:34 PM
No worries