From 8b1ce8545d3b361d963d9bd95e3f1d9aa498a2fb Mon Sep 17 00:00:00 2001
From: buildmaster
Date: Wed, 11 Jan 2017 18:37:41 +0000
Subject: [PATCH] Sync docs from 1.0.x to gh-pages
---
1.0.x/spring-cloud-contract.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/1.0.x/spring-cloud-contract.html b/1.0.x/spring-cloud-contract.html
index b663f1a055..af3a80aba1 100644
--- a/1.0.x/spring-cloud-contract.html
+++ b/1.0.x/spring-cloud-contract.html
@@ -6773,8 +6773,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
@@ -6800,8 +6800,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
@@ -6849,9 +6849,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())
@@ -6888,10 +6888,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