diff --git a/consumer/src/test/groovy/au/com/dius/pact/consumer/dsl/DslSpec.groovy b/consumer/src/test/groovy/au/com/dius/pact/consumer/dsl/DslSpec.groovy index 48a8694ad..ff1e5bf27 100644 --- a/consumer/src/test/groovy/au/com/dius/pact/consumer/dsl/DslSpec.groovy +++ b/consumer/src/test/groovy/au/com/dius/pact/consumer/dsl/DslSpec.groovy @@ -35,11 +35,11 @@ class DslSpec extends Specification { def 'eachKeyMappedToAnArrayLike does not work on "nested" property'() { given: def body = new PactDslJsonBody() - .date("date", "yyyyMMdd'T'HHmmss") - .stringMatcher("system", ".+", "systemname") - .object("data") - .eachKeyMappedToAnArrayLike("subsystem_name") - .stringType("id","1234567") + .date('date', "yyyyMMdd'T'HHmmss") + .stringMatcher('system', '.+', 'systemname') + .object('data') + .eachKeyMappedToAnArrayLike('subsystem_name') + .stringType('id', '1234567') .closeArray() .closeObject() diff --git a/core/matchers/src/test/groovy/au/com/dius/pact/core/matchers/MatchingSpec.groovy b/core/matchers/src/test/groovy/au/com/dius/pact/core/matchers/MatchingSpec.groovy index ad7893385..4dfbb863d 100644 --- a/core/matchers/src/test/groovy/au/com/dius/pact/core/matchers/MatchingSpec.groovy +++ b/core/matchers/src/test/groovy/au/com/dius/pact/core/matchers/MatchingSpec.groovy @@ -8,7 +8,6 @@ import au.com.dius.pact.core.model.matchingrules.ContentTypeMatcher import au.com.dius.pact.core.model.matchingrules.DateMatcher import au.com.dius.pact.core.model.matchingrules.MatchingRuleCategory import au.com.dius.pact.core.model.matchingrules.MatchingRulesImpl -import au.com.dius.pact.core.model.matchingrules.MinTypeMatcher import au.com.dius.pact.core.model.matchingrules.RegexMatcher import au.com.dius.pact.core.model.matchingrules.TypeMatcher import au.com.dius.pact.core.model.matchingrules.ValuesMatcher @@ -177,12 +176,12 @@ class MatchingSpec extends Specification { result.mismatches.empty } - @Issue("401") + @Issue('#401') def 'Body Matching - eachKeyMappedToAnArrayLike does not work on "nested" property'() { given: bodyContext.matchers .addRule('$.date', new DateMatcher("yyyyMMdd'T'HHmmss")) - .addRule('$.system', new RegexMatcher(".+")) + .addRule('$.system', new RegexMatcher('.+')) .addRule('$.data', ValuesMatcher.INSTANCE) .addRule('$.data.*[*].id', TypeMatcher.INSTANCE)