Adds a flag to disable stubs after each test excution; fixes gh-1286

This commit is contained in:
Marcin Grzejszczak
2019-12-11 13:13:37 +01:00
parent d66d7dccf2
commit 67119e62f6
4 changed files with 126 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ property. Using `@AutoConfigureWireMock` adds a bean of type `WiremockConfigurat
your test application context, where it is cached between methods and classes
having the same context. The same is true for Spring integration tests. Also, you can
inject a bean of type `WireMockServer` into your test.
The registered WireMock server is reset after each test class, however, if you need to reset it after each test method, just set the `wiremock.reset-mappings-after-each-test` property to `true`.
[[features-wiremock-registering-stubs]]
=== Registering Stubs Automatically