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