From 81d6aa3b3d290b0bcaa58ebd37ed3258070ba955 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 26 Apr 2017 12:00:45 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 551d544bf0..952fa68bdc 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -4361,6 +4361,9 @@ There might be a problem with StubRunner shutting down ports between tests. You
  • feed the WireMock server with all JSON files that are valid WireMock definitions

  • +
  • +

    can also send messages (remember to pass an implementation of MessageVerifier interface)

    +
  • @@ -4462,6 +4465,20 @@ public void should_start_wiremock_servers() throws Exception {

    Check the Common properties for JUnit and Spring for more information on how to apply global configuration of Stub Runner.

    +
    + + + + + +
    +
    Important
    +
    +To use the JUnit rule together with messaging you have to provide an implementation of the +MessageVerifier interface to the rule builder (e.g. rule.messageVerifier(new MyMessageVerifier())). +If you don’t do this then whenever you try to send a message an exception will be thrown. +
    +

    Maven settings