Sync docs from 1.0.x to gh-pages

This commit is contained in:
buildmaster
2017-02-03 10:03:28 +00:00
parent 0c168dc538
commit 62fe5a45f5

View File

@@ -6909,6 +6909,8 @@ That way you can assert on the size of the collection.</p>
valueWithMinMax: [
1,2,3
],
valueWithMinEmpty: [],
valueWithMaxEmpty: [],
])
testMatchers {
// asserts the jsonpath value against manual regex
@@ -6939,6 +6941,14 @@ That way you can assert on the size of the collection.</p>
minOccurrence(1)
maxOccurrence(3)
})
jsonPath('$.valueWithMinEmpty', byType {
// results in verification of size of array (min 0)
minOccurrence(0)
})
jsonPath('$.valueWithMaxEmpty', byType {
// results in verification of size of array (max 0)
maxOccurrence(0)
})
}
headers {
contentType(applicationJson())