Fixed Invalid null JSON parts processing #4
This commit is contained in:
@@ -52,7 +52,7 @@ class SpockMethodBodyBuilder {
|
||||
blockBuilder.addLine("responseBody.$it.key == \"$value\"")
|
||||
}
|
||||
} else {
|
||||
blockBuilder.addLine("responseBody.$it == $value")
|
||||
blockBuilder.addLine("responseBody.$it.key == $value")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"body": "{\"loanApplicationStatus\":\"LOAN_APPLIED\",\"loanApplicationId\":\"${123123123:$anyInt($it)}\"}",
|
||||
"body": "{\"loanApplicationStatus\":\"LOAN_APPLIED\",\"loanApplicationId\":\"${123123123:$anyInt($it)}\",\"rejectionReason\":null}",
|
||||
"headers": {
|
||||
"Content-Type": "application/vnd.loanapplicationservice.v1+json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user