Merge branch '1.0.x'
This commit is contained in:
@@ -81,6 +81,8 @@ abstract class MessagingMethodBodyBuilder extends MethodBodyBuilder {
|
||||
bb.endBlock()
|
||||
if (outputMessage.headers) {
|
||||
bb.addLine(addCommentSignIfRequired('and:')).startBlock()
|
||||
} else {
|
||||
bb.startBlock()
|
||||
}
|
||||
validateResponseBodyBlock(bb, outputMessage.matchers, outputMessage.body.serverValue)
|
||||
}
|
||||
|
||||
@@ -343,6 +343,9 @@ then:
|
||||
assertThatJson(parsedJson).field("bookName").isEqualTo("foo");
|
||||
'''
|
||||
stripped(test) == stripped(expectedMsg)
|
||||
and: 'indents are maintained'
|
||||
test.contains(" ContractVerifierMessage response")
|
||||
test.contains(" DocumentContext parsedJson")
|
||||
}
|
||||
|
||||
def "should generate tests without headers for Spock"() {
|
||||
|
||||
Reference in New Issue
Block a user