From 2c9a18cb0a46da8c7a91ce4ba04d1e0d545fccd4 Mon Sep 17 00:00:00 2001
From: buildmaster
Date: Wed, 11 Jan 2017 18:28:13 +0000
Subject: [PATCH] Sync docs from master to gh-pages
---
spring-cloud-contract.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html
index cd19f4baf4..adf0e27e81 100644
--- a/spring-cloud-contract.html
+++ b/spring-cloud-contract.html
@@ -6772,8 +6772,8 @@ For stubMatchers:
-
-
byValue(…) - the value taken from the response via the provided JSON Path needs
-to be equal to the provided value
+byEquality() - the value taken from the response via the provided JSON Path needs
+to be equal to the provided value in the contract
-
byRegex(…) - the value taken from the response via the provided JSON Path needs
@@ -6799,8 +6799,8 @@ match the regex for ISO Time
-
-
byValue(…) - the value taken from the response via the provided JSON Path needs
-to be equal to the provided value
+byEquality() - the value taken from the response via the provided JSON Path needs
+to be equal to the provided value in the contract
-
byRegex(…) - the value taken from the response via the provided JSON Path needs
@@ -6848,9 +6848,9 @@ That way you can assert on the size of the collection.
])
stubMatchers {
jsonPath('$.duck', byRegex("[0-9]{3}"))
- jsonPath('$.duck', byValue(123))
+ jsonPath('$.duck', byEquality())
jsonPath('$.alpha', byRegex(onlyAlphaUnicode()))
- jsonPath('$.alpha', byValue("abc"))
+ jsonPath('$.alpha', byEquality())
jsonPath('$.number', byRegex(number()))
jsonPath('$.aBoolean', byRegex(anyBoolean()))
jsonPath('$.date', byDate())
@@ -6887,10 +6887,10 @@ That way you can assert on the size of the collection.
// asserts the jsonpath value against manual regex
jsonPath('$.duck', byRegex("[0-9]{3}"))
// asserts the jsonpath value against the provided value
- jsonPath('$.duck', byValue(123))
+ jsonPath('$.duck', byEquality())
// asserts the jsonpath value against some default regex
jsonPath('$.alpha', byRegex(onlyAlphaUnicode()))
- jsonPath('$.alpha', byValue("abc"))
+ jsonPath('$.alpha', byEquality())
jsonPath('$.number', byRegex(number()))
jsonPath('$.aBoolean', byRegex(anyBoolean()))
// asserts vs inbuilt time related regex