From ea942cc1d3a484bfbd6f3fbfacde940b7fe8140d Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 26 Apr 2017 11:47:22 +0000 Subject: [PATCH] Sync docs from 1.0.x to gh-pages --- 1.0.x/spring-cloud-contract.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/1.0.x/spring-cloud-contract.html b/1.0.x/spring-cloud-contract.html index 383af1a7c3..d923296d88 100644 --- a/1.0.x/spring-cloud-contract.html +++ b/1.0.x/spring-cloud-contract.html @@ -4748,6 +4748,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)

    +
  • @@ -4865,6 +4868,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