Sync docs from master to gh-pages
This commit is contained in:
@@ -6772,8 +6772,8 @@ For <code>stubMatchers</code>:</p>
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>byValue(…​)</code> - the value taken from the response via the provided JSON Path needs
|
||||
to be equal to the provided value</p>
|
||||
<p><code>byEquality()</code> - the value taken from the response via the provided JSON Path needs
|
||||
to be equal to the provided value in the contract</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>byRegex(…​)</code> - the value taken from the response via the provided JSON Path needs
|
||||
@@ -6799,8 +6799,8 @@ match the regex for ISO Time</p>
|
||||
<div class="ulist">
|
||||
<ul>
|
||||
<li>
|
||||
<p><code>byValue(…​)</code> - the value taken from the response via the provided JSON Path needs
|
||||
to be equal to the provided value</p>
|
||||
<p><code>byEquality()</code> - the value taken from the response via the provided JSON Path needs
|
||||
to be equal to the provided value in the contract</p>
|
||||
</li>
|
||||
<li>
|
||||
<p><code>byRegex(…​)</code> - 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.</p>
|
||||
])
|
||||
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.</p>
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user