Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
Modifier and Type | Method and Description |
---|---|
WebTestClient.BodyContentSpec |
WebTestClient.BodyContentSpec.consumeWith(java.util.function.Consumer<EntityExchangeResult<byte[]>> consumer)
Assert the response body content with the given
Consumer . |
WebTestClient.BodyContentSpec |
JsonPathAssertions.doesNotExist()
|
WebTestClient.BodyContentSpec |
XpathAssertions.doesNotExist()
Delegates to
XpathExpectationsHelper.doesNotExist(byte[], String) . |
WebTestClient.BodyContentSpec |
JsonPathAssertions.doesNotHaveJsonPath()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.exists()
|
WebTestClient.BodyContentSpec |
XpathAssertions.exists()
Delegates to
XpathExpectationsHelper.exists(byte[], String) . |
WebTestClient.BodyContentSpec |
WebTestClient.ResponseSpec.expectBody()
Consume and decode the response body to
byte[] and then apply
assertions on the raw content (e.g. |
WebTestClient.BodyContentSpec |
JsonPathAssertions.hasJsonPath()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isArray()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isBoolean()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isEmpty()
|
WebTestClient.BodyContentSpec |
XpathAssertions.isEqualTo(boolean expectedValue)
|
WebTestClient.BodyContentSpec |
XpathAssertions.isEqualTo(java.lang.Double expectedValue)
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isEqualTo(java.lang.Object expectedValue)
|
WebTestClient.BodyContentSpec |
XpathAssertions.isEqualTo(java.lang.String expectedValue)
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isMap()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isNotEmpty()
|
WebTestClient.BodyContentSpec |
JsonPathAssertions.isNumber()
|
WebTestClient.BodyContentSpec |
WebTestClient.BodyContentSpec.json(java.lang.String expectedJson)
Parse the expected and actual response content as JSON and perform a
"lenient" comparison verifying the same attribute-value pairs.
|
WebTestClient.BodyContentSpec |
XpathAssertions.nodeCount(java.util.function.Consumer<java.lang.Integer> consumer)
Consume the count of nodes as result of the XPath evaluation.
|
WebTestClient.BodyContentSpec |
XpathAssertions.nodeCount(int expectedCount)
|
WebTestClient.BodyContentSpec |
XpathAssertions.nodeCount(org.hamcrest.Matcher<java.lang.Integer> matcher)
|
WebTestClient.BodyContentSpec |
XpathAssertions.number(java.util.function.Consumer<java.lang.Double> consumer)
Consume the result of the XPath evaluation as a Double.
|
WebTestClient.BodyContentSpec |
XpathAssertions.number(org.hamcrest.Matcher<? super java.lang.Double> matcher)
|
WebTestClient.BodyContentSpec |
XpathAssertions.string(java.util.function.Consumer<java.lang.String> consumer)
Consume the result of the XPath evaluation as a String.
|
WebTestClient.BodyContentSpec |
XpathAssertions.string(org.hamcrest.Matcher<? super java.lang.String> matcher)
|
<T> WebTestClient.BodyContentSpec |
JsonPathAssertions.value(java.util.function.Consumer<T> consumer)
Consume the result of the JSONPath evaluation.
|
<T> WebTestClient.BodyContentSpec |
JsonPathAssertions.value(java.util.function.Consumer<T> consumer,
java.lang.Class<T> targetType)
Consume the result of the JSONPath evaluation and provide a target class.
|
<T> WebTestClient.BodyContentSpec |
JsonPathAssertions.value(org.hamcrest.Matcher<T> matcher)
Delegates to
JsonPathExpectationsHelper.assertValue(String, Matcher) . |
<T> WebTestClient.BodyContentSpec |
JsonPathAssertions.value(org.hamcrest.Matcher<T> matcher,
java.lang.Class<T> targetType)
|
WebTestClient.BodyContentSpec |
WebTestClient.BodyContentSpec.xml(java.lang.String expectedXml)
Parse expected and actual response content as XML and assert that
the two are "similar", i.e.
|