From e6cbe404673fc9a8adcfd94a3458afb1b7d05abf Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 10 Apr 2017 13:02:20 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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