From 1cd2ce9722825ce0af6778d35f2d103621dbecde Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Fri, 16 Mar 2018 06:53:37 +0100 Subject: [PATCH] Fixed broken tests --- .../contract/stubrunner/StubRunnerOptionsBuilderSpec.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerOptionsBuilderSpec.groovy b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerOptionsBuilderSpec.groovy index b4867d2960..3981896873 100644 --- a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerOptionsBuilderSpec.groovy +++ b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/StubRunnerOptionsBuilderSpec.groovy @@ -179,7 +179,7 @@ class StubRunnerOptionsBuilderSpec extends Specification { given: StubRunnerOptionsBuilder builder = builder.withOptions(new StubRunnerOptions(1, 2, "root", StubRunnerProperties.StubsMode.LOCAL, "classifier", [new StubConfiguration("a:b:c")], [(new StubConfiguration("a:b:c")): 3], "foo", "bar", - new StubRunnerOptions.StubRunnerProxyOptions("host", 4), true, "consumer", "folder", true)) + new StubRunnerOptions.StubRunnerProxyOptions("host", 4), true, "consumer", "folder", true, false)) builder.withStubs("foo:bar:baz") when: StubRunnerOptions options = builder.build() @@ -199,6 +199,7 @@ class StubRunnerOptionsBuilderSpec extends Specification { options.consumerName == "consumer" options.mappingsOutputFolder == "folder" options.snapshotCheckSkip == true + options.deleteStubsAfterTest == false } def shouldNotPrintUsernameAndPassword() { @@ -206,7 +207,7 @@ class StubRunnerOptionsBuilderSpec extends Specification { StubRunnerOptionsBuilder builder = builder.withOptions(new StubRunnerOptions(1, 2, "root", StubRunnerProperties.StubsMode.CLASSPATH, "classifier", [new StubConfiguration("a:b:c")], [(new StubConfiguration("a:b:c")): 3], "username123", "password123", - new StubRunnerOptions.StubRunnerProxyOptions("host", 4), true, "consumer", "folder", true)) + new StubRunnerOptions.StubRunnerProxyOptions("host", 4), true, "consumer", "folder", true, false)) builder.withStubs("foo:bar:baz") when: String options = builder.build().toString()