From ee87decf82a43adba091149a9ea6ace0df5a3eef Mon Sep 17 00:00:00 2001 From: Adam Wojszczyk Date: Mon, 17 Aug 2015 16:05:32 +0200 Subject: [PATCH] [#121] Allow fields' values to be empty lists during searching for patterns - reformat --- .../accurest/dsl/WireMockGroovyDslSpec.groovy | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/accurest-core/src/test/groovy/io/codearte/accurest/dsl/WireMockGroovyDslSpec.groovy b/accurest-core/src/test/groovy/io/codearte/accurest/dsl/WireMockGroovyDslSpec.groovy index d38124d532..1867c49eda 100755 --- a/accurest-core/src/test/groovy/io/codearte/accurest/dsl/WireMockGroovyDslSpec.groovy +++ b/accurest-core/src/test/groovy/io/codearte/accurest/dsl/WireMockGroovyDslSpec.groovy @@ -1181,18 +1181,6 @@ class WireMockGroovyDslSpec extends WireMockSpec { ''') } - String toJsonString(value) { - new JsonBuilder(value).toPrettyString() - } - - Object parseJson(json) { - new JsonSlurper().parseText(json) - } - - String toWireMockClientJsonStub(groovyDsl) { - new WireMockStubStrategy(groovyDsl).toWireMockClientStub() - } - @Issue("#121") def 'should generate stub with empty list as a value of a field'() { given: @@ -1200,7 +1188,7 @@ class WireMockGroovyDslSpec extends WireMockSpec { request { method('POST') body( - values: [] + values: [] ) } response { @@ -1228,4 +1216,16 @@ class WireMockGroovyDslSpec extends WireMockSpec { and: stubMappingIsValidWireMockStub(wireMockStub) } + + String toJsonString(value) { + new JsonBuilder(value).toPrettyString() + } + + Object parseJson(json) { + new JsonSlurper().parseText(json) + } + + String toWireMockClientJsonStub(groovyDsl) { + new WireMockStubStrategy(groovyDsl).toWireMockClientStub() + } }