JavaScript is disabled on your browser.
Support for testing Spring WebFlux server endpoints via
WebTestClient
.
Assert the response body content with the given
Consumer
.
Consume and decode the response body to byte[]
and then apply
assertions on the raw content (e.g.
XpathAssertions. isEqualTo (boolean expectedValue)
JsonPathAssertions. isMap ()
WebTestClient.BodyContentSpec. json (String expectedJson)
Parse the expected and actual response content as JSON and perform a
comparison verifying that they contain the same attribute-value pairs
regardless of formatting with lenient checking (extensible
and non-strict array ordering).
WebTestClient.BodyContentSpec. json (String expectedJson,
boolean strict)
Parse the expected and actual response content as JSON and perform a
comparison using the given
JsonComparator
.
Parse the expected and actual response content as JSON and perform a
comparison using the given
mode .
Consume the count of nodes as result of the XPath evaluation.
Consume the result of the XPath evaluation as a Double.
Consume the result of the XPath evaluation as a String.
Consume the result of the JSONPath evaluation and provide a target class.
Consume the result of the JSONPath evaluation.
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated, for removal: This API element is subject to removal in a future version.
Consume the result of the JSONPath evaluation and provide a parameterized type.
WebTestClient.BodyContentSpec. xml (String expectedXml)
Parse expected and actual response content as XML and assert that
the two are "similar", i.e.
json(String, JsonCompareMode)