Reputation: 43
Have written my test in cucumber and would like to reset the mock at beginning of my test, so I can be sure of times the stub has been called
Upvotes: 2
Views: 8334
Reputation: 4149
Calling WireMock.reset()
will reset both stubs (removing any that aren't saved as files) and the request journal.
WireMock.resetAllRequests()
will just reset the journal.
Upvotes: 6