Added additional resetting options; fixes gh-1322

This commit is contained in:
Marcin Grzejszczak
2020-02-12 16:30:38 +01:00
parent eaa82da1ab
commit 4f6b6909a6

View File

@@ -157,7 +157,11 @@ public class WireMockConfiguration implements SmartLifecycle {
void resetMappings() {
if (this.server.isRunning()) {
this.server.resetAll();
this.server.resetRequests();
this.server.resetScenarios();
WireMock.reset();
WireMock.resetAllRequests();
WireMock.resetAllScenarios();
registerStubs();
logRegisteredMappings();
}