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