From 538072001d6361300d8c0a6f6309bedf77b4b1da Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 27 Nov 2017 20:17:28 +0000 Subject: [PATCH] Sync docs from 2.0.x to gh-pages --- .../multi__spring_cloud_contract_faq.html | 2 +- ..._spring_cloud_contract_verifier_setup.html | 7 +- ...multi__spring_cloud_contract_wiremock.html | 2 +- 2.0.x/single/spring-cloud-contract.html | 11 +-- .../checkstyle.html | 6 +- .../complex.html | 6 +- .../configs.html | 6 +- .../convert-mojo.html | 98 ++++++++++++++++++- .../generateStubs-mojo.html | 6 +- .../generateTests-mojo.html | 98 ++++++++++++++++++- .../help-mojo.html | 6 +- .../index.html | 6 +- .../integration.html | 6 +- .../issue-tracking.html | 6 +- .../junit.html | 6 +- .../license.html | 6 +- .../plugin-info.html | 6 +- .../plugin-management.html | 6 +- .../plugins.html | 6 +- .../project-info.html | 6 +- .../project-reports.html | 6 +- .../project-summary.html | 6 +- .../run-mojo.html | 6 +- .../sitemap.html | 6 +- .../source-repository.html | 6 +- .../spock.html | 6 +- .../team-list.html | 6 +- .../usage.html | 6 +- 2.0.x/spring-cloud-contract.xml | 25 ++--- 29 files changed, 272 insertions(+), 103 deletions(-) diff --git a/2.0.x/multi/multi__spring_cloud_contract_faq.html b/2.0.x/multi/multi__spring_cloud_contract_faq.html index 66fa351ad4..0cde52bfaa 100644 --- a/2.0.x/multi/multi__spring_cloud_contract_faq.html +++ b/2.0.x/multi/multi__spring_cloud_contract_faq.html @@ -122,7 +122,7 @@ one to one to the contents of the repo.

Example of a <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version> - <spring-cloud-contract.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-contract.version> + <spring-cloud-contract.version>1.2.2.BUILD-SNAPSHOT</spring-cloud-contract.version> <spring-cloud-dependencies.version>Edgware.BUILD-SNAPSHOT</spring-cloud-dependencies.version> <excludeBuildFolders>true</excludeBuildFolders> </properties> diff --git a/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html b/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html index a3e5af3a97..36e6d97b1d 100644 --- a/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html +++ b/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html @@ -375,11 +375,8 @@ extends com.example.base.BaseClass. This setting ta packageWithBaseClasses and baseClassForTests.

If you want to download your contract definitions from a Maven repository, you can use the following options:

We cache only non-snapshot, explicitly provided versions (for example +local Maven artifacts should be reused.

  • contractsRepositoryUrl: URL to a repo with the artifacts that have contracts. If it is not provided, +use the current Maven ones.
  • contractsRepositoryUsername: The user name to be used to connect to the repo with contracts.
  • contractsRepositoryPassword: The password to be used to connect to the repo with contracts.
  • contractsRepositoryProxyHost: The proxy host to be used to connect to the repo with contracts.
  • contractsRepositoryProxyPort: The proxy port to be used to connect to the repo with contracts.
  • We cache only non-snapshot, explicitly provided versions (for example + or 1.0.0.BUILD-SNAPSHOT won’t get cached). By default, this feature is turned on.

    4.2.8 Single Base Class for All Tests

    When using Spring Cloud Contract Verifier in default MockMvc, you need to create a base specification for all generated acceptance tests. In this class, you need to point to an endpoint, which should be verified.

    package org.mycompany.tests
    diff --git a/2.0.x/multi/multi__spring_cloud_contract_wiremock.html b/2.0.x/multi/multi__spring_cloud_contract_wiremock.html
    index 1a2b24bead..608a4d8d95 100644
    --- a/2.0.x/multi/multi__spring_cloud_contract_wiremock.html
    +++ b/2.0.x/multi/multi__spring_cloud_contract_wiremock.html
    @@ -62,7 +62,7 @@ automatic loading of stubs, because they come from the root location
     in a subdirectory called "mappings". The value of files has no
     effect on the stubs loaded explicitly from the stubs attribute.

    11.3 Alternative: Using JUnit Rules

    For a more conventional WireMock experience, you can use JUnit @Rules to start and stop the server. To do so, use the WireMockSpring convenience class to obtain an Options -instance, as shown in the followin example:

    @RunWith(SpringRunner.class)
    +instance, as shown in the following example:

    @RunWith(SpringRunner.class)
     @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
     public class WiremockForDocsClassRuleTests {
     
    diff --git a/2.0.x/single/spring-cloud-contract.html b/2.0.x/single/spring-cloud-contract.html
    index 6dcd67db6b..587087b5ab 100644
    --- a/2.0.x/single/spring-cloud-contract.html
    +++ b/2.0.x/single/spring-cloud-contract.html
    @@ -573,7 +573,7 @@ one to one to the contents of the repo.

    Example of a <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version> - <spring-cloud-contract.version>1.2.1.BUILD-SNAPSHOT</spring-cloud-contract.version> + <spring-cloud-contract.version>1.2.2.BUILD-SNAPSHOT</spring-cloud-contract.version> <spring-cloud-dependencies.version>Edgware.BUILD-SNAPSHOT</spring-cloud-dependencies.version> <excludeBuildFolders>true</excludeBuildFolders> </properties> @@ -1124,11 +1124,8 @@ extends com.example.base.BaseClass. This setting ta packageWithBaseClasses and baseClassForTests.

    If you want to download your contract definitions from a Maven repository, you can use the following options:

    We cache only non-snapshot, explicitly provided versions (for example +local Maven artifacts should be reused.

  • contractsRepositoryUrl: URL to a repo with the artifacts that have contracts. If it is not provided, +use the current Maven ones.
  • contractsRepositoryUsername: The user name to be used to connect to the repo with contracts.
  • contractsRepositoryPassword: The password to be used to connect to the repo with contracts.
  • contractsRepositoryProxyHost: The proxy host to be used to connect to the repo with contracts.
  • contractsRepositoryProxyPort: The proxy port to be used to connect to the repo with contracts.
  • We cache only non-snapshot, explicitly provided versions (for example + or 1.0.0.BUILD-SNAPSHOT won’t get cached). By default, this feature is turned on.

    4.2.8 Single Base Class for All Tests

    When using Spring Cloud Contract Verifier in default MockMvc, you need to create a base specification for all generated acceptance tests. In this class, you need to point to an endpoint, which should be verified.

    package org.mycompany.tests
    @@ -4473,7 +4470,7 @@ automatic loading of stubs, because they come from the root location
     in a subdirectory called "mappings". The value of files has no
     effect on the stubs loaded explicitly from the stubs attribute.

    11.3 Alternative: Using JUnit Rules

    For a more conventional WireMock experience, you can use JUnit @Rules to start and stop the server. To do so, use the WireMockSpring convenience class to obtain an Options -instance, as shown in the followin example:

    @RunWith(SpringRunner.class)
    +instance, as shown in the following example:

    @RunWith(SpringRunner.class)
     @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
     public class WiremockForDocsClassRuleTests {
     
    diff --git a/2.0.x/spring-cloud-contract-maven-plugin/checkstyle.html b/2.0.x/spring-cloud-contract-maven-plugin/checkstyle.html
    index cba7338742..7244fd3e3b 100644
    --- a/2.0.x/spring-cloud-contract-maven-plugin/checkstyle.html
    +++ b/2.0.x/spring-cloud-contract-maven-plugin/checkstyle.html
    @@ -1,13 +1,13 @@
     
     
     
       
         
         
    -    
    +    
         
         Spring Cloud Contract Maven Plugin – Checkstyle Results
         
    @@ -146,7 +146,7 @@