Dominic
Dominic

Reputation: 43

Wiremock: how to reset the wiremock

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

Answers (1)

Tom
Tom

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

Related Questions