From f786b4ee924a30093ef36ef245f49b0543035406 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 3 Feb 2017 10:04:37 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 5513114e44..f26bd2365c 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -6918,6 +6918,8 @@ That way you can assert on the size of the collection.

valueWithMinMax: [ 1,2,3 ], + valueWithMinEmpty: [], + valueWithMaxEmpty: [], ]) testMatchers { // asserts the jsonpath value against manual regex @@ -6948,6 +6950,14 @@ That way you can assert on the size of the collection.

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()) @@ -7688,7 +7698,12 @@ common jar classes will be visible in your Groovy files.

Maven
-
Unresolved directive in verifier/contract.adoc - include::https://raw.githubusercontent.com/spring-cloud-samples/spring-cloud-contract-samples/master/producer/pom.xml[tags=test_dep,indent=0]
+
<dependency>
+	<groupId>com.example</groupId>
+	<artifactId>beer-common</artifactId>
+	<version>${project.version}</version>
+	<scope>test</scope>
+</dependency>