From 007cf3034b557ebb2e8a663ffe99d9d62f775625 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 23 Feb 2017 17:49:41 +0100 Subject: [PATCH] Sync docs from 1.0.x to gh-pages --- 1.0.x/index.html | 218 ++++++++++++++++-- .../checkstyle.rss | 34 +-- .../plugins.html | 2 +- 3 files changed, 212 insertions(+), 42 deletions(-) diff --git a/1.0.x/index.html b/1.0.x/index.html index 88ac16661b..d7544895cb 100644 --- a/1.0.x/index.html +++ b/1.0.x/index.html @@ -507,6 +507,7 @@ $(addBlockSwitches);
  • WireMock and Spring MVC Mocks
  • Generating Stubs using RestDocs
  • +
  • Generating Contracts using RestDocs
  • Spring Cloud Contract Verifier
    @@ -6871,6 +7024,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 @@ -6901,6 +7056,16 @@ 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) + }) + // will execute a method `assertThatValueIsANumber` + jsonPath('$.duck', byCommand('assertThatValueIsANumber($it)')) } headers { contentType(applicationJson()) @@ -6975,7 +7140,12 @@ assertions and the one from matchers with an and section):

    assertThat((Object) parsedJson.read("$.valueWithMax")).isInstanceOf(java.util.List.class); assertThat(parsedJson.read("$.valueWithMax", java.util.Collection.class).size()).isLessThanOrEqualTo(3); assertThat((Object) parsedJson.read("$.valueWithMinMax")).isInstanceOf(java.util.List.class); - assertThat(parsedJson.read("$.valueWithMinMax", java.util.Collection.class).size()).isStrictlyBetween(1, 3);
    + assertThat(parsedJson.read("$.valueWithMinMax", java.util.Collection.class).size()).isBetween(1, 3); + assertThat((Object) parsedJson.read("$.valueWithMinEmpty")).isInstanceOf(java.util.List.class); + assertThat(parsedJson.read("$.valueWithMinEmpty", java.util.Collection.class).size()).isGreaterThanOrEqualTo(0); + assertThat((Object) parsedJson.read("$.valueWithMaxEmpty")).isInstanceOf(java.util.List.class); + assertThat(parsedJson.read("$.valueWithMaxEmpty", java.util.Collection.class).size()).isLessThanOrEqualTo(0); + assertThatValueIsANumber(parsedJson.read("$.duck"));
    diff --git a/1.0.x/spring-cloud-contract-maven-plugin/checkstyle.rss b/1.0.x/spring-cloud-contract-maven-plugin/checkstyle.rss index 7758168dff..2baf3c0acf 100644 --- a/1.0.x/spring-cloud-contract-maven-plugin/checkstyle.rss +++ b/1.0.x/spring-cloud-contract-maven-plugin/checkstyle.rss @@ -46,7 +46,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/MavenContractsDownloader.java + org/springframework/cloud/contract/maven/verifier/GenerateTestsMojo.java 0 @@ -60,7 +60,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/GenerateTestsMojo.java + org/springframework/cloud/contract/maven/verifier/MavenContractsDownloader.java 0 @@ -113,20 +113,6 @@ under the License. 0 - - - - org/springframework/cloud/contract/maven/verifier/stubrunner/RemoteStubRunner.java - - - 0 - - - 0 - - - 0 - @@ -158,7 +144,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/stubrunner/LocalStubRunner.java + org/springframework/cloud/contract/maven/verifier/stubrunner/RemoteStubRunner.java 0 @@ -183,6 +169,20 @@ under the License. 0 + + + + org/springframework/cloud/contract/maven/verifier/stubrunner/LocalStubRunner.java + + + 0 + + + 0 + + + 0 + diff --git a/1.0.x/spring-cloud-contract-maven-plugin/plugins.html b/1.0.x/spring-cloud-contract-maven-plugin/plugins.html index 5e20f694c3..469d8b81a2 100644 --- a/1.0.x/spring-cloud-contract-maven-plugin/plugins.html +++ b/1.0.x/spring-cloud-contract-maven-plugin/plugins.html @@ -405,7 +405,7 @@ org.jacoco http://jacoco-maven-plugin -0.7.9
    +0.7.8

    Project Report Plugins