From 5e47e458f5d070f3f5425889f66785c3d0ba3c0b Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 28 Aug 2017 08:17:49 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index a96accf3ae..4240ab8e6e 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -7485,6 +7485,21 @@ assertions and the one from matchers with an and section):

assertThatValueIsANumber(parsedJson.read("$.duck")); +
+ + + + + +
+ + +Notice that for the byCommand method we are calling the assertThatValueIsANumber. This method needs +to be defined in the test base class or should be statically imported to your tests. +Notice that the byCommand call was converted to assertThatValueIsANumber(parsedJson.read("$.duck"));. That means +that we took the method name and passed the proper JSON path as a parameter to it. +
+

and the WireMock stub like this: