From 3dea7aca9925d99f82a1c25d403cbb7ab9613a21 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Mon, 10 Apr 2017 14:42:40 +0200 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract-maven-plugin/checkstyle.rss | 8 ++++---- spring-cloud-contract-maven-plugin/plugins.html | 2 +- spring-cloud-contract.html | 12 ++++++++++++ 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/spring-cloud-contract-maven-plugin/checkstyle.rss b/spring-cloud-contract-maven-plugin/checkstyle.rss index 8287aec20a..2baf3c0acf 100644 --- a/spring-cloud-contract-maven-plugin/checkstyle.rss +++ b/spring-cloud-contract-maven-plugin/checkstyle.rss @@ -116,7 +116,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/RunMojo.java + org/springframework/cloud/contract/maven/verifier/CopyContracts.java 0 @@ -130,7 +130,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/CopyContracts.java + org/springframework/cloud/contract/maven/verifier/RunMojo.java 0 @@ -158,7 +158,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/stubrunner/LocalStubRunner.java + org/springframework/cloud/contract/maven/verifier/ManifestCreator.java 0 @@ -172,7 +172,7 @@ under the License. - org/springframework/cloud/contract/maven/verifier/ManifestCreator.java + org/springframework/cloud/contract/maven/verifier/stubrunner/LocalStubRunner.java 0 diff --git a/spring-cloud-contract-maven-plugin/plugins.html b/spring-cloud-contract-maven-plugin/plugins.html index bf8853143b..d0cd25bc4f 100644 --- a/spring-cloud-contract-maven-plugin/plugins.html +++ b/spring-cloud-contract-maven-plugin/plugins.html @@ -405,7 +405,7 @@ org.jacoco http://jacoco-maven-plugin -0.7.7.201606060606 +0.7.8

Project Report Plugins

diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index feab0fdaf2..d0a979e086 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -561,6 +561,7 @@ $(addBlockSwitches);
  • Can I have multiple base classes for tests?
  • +
  • How can I debug the request/response being sent by the generated tests client?
  • Can I reference the request from the response?
  • @@ -2943,6 +2944,17 @@ of either Gradle or Maven plugins.

    +

    How can I debug the request/response being sent by the generated tests client?

    +
    +

    The generated tests all boil down to RestAssured in some form or fashion which relies on Apache HttpClient. HttpClient has a facility called wire logging which logs the entire request and response to HttpClient. Spring Boot has a logging common application property for doing this sort of thing, just add this to your application properties

    +
    +
    +
    +
    logging.level.org.apache.http.wire=DEBUG
    +
    +
    +
    +

    Can I reference the request from the response?

    Yes! With version 1.1.0 we’ve added such a possibility. On the HTTP stub server side we’re providing support