Clearing servers before the test
This commit is contained in:
@@ -22,4 +22,8 @@ class WireMockHttpServerStubAccessor {
|
||||
assert WireMockHttpServerStub.SERVERS.every { it.value.random }
|
||||
return true
|
||||
}
|
||||
|
||||
static void clear() {
|
||||
WireMockHttpServerStub.SERVERS.clear()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +74,7 @@ class StubRunnerConfigurationSpec extends Specification {
|
||||
void setupProps() {
|
||||
System.clearProperty("stubrunner.repository.root")
|
||||
System.clearProperty("stubrunner.classifier")
|
||||
WireMockHttpServerStubAccessor.clear()
|
||||
}
|
||||
|
||||
def 'should mark all ports as random'() {
|
||||
|
||||
Reference in New Issue
Block a user