WebTestClient.BodyContentSpec | WebTestClient.BodyContentSpec.consumeWith(Consumer<EntityExchangeResult<byte[]>> consumer) | Assert the response body content with the given Consumer . |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.doesNotExist() | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.doesNotExist() | |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.doesNotHaveJsonPath() | |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.exists() | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.exists() | |
---|
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 | JsonPathAssertions.isEqualTo(Object expectedValue) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.isEqualTo(boolean expectedValue) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.isEqualTo(Double expectedValue) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.isEqualTo(String expectedValue) | |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.isMap() | |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.isNotEmpty() | |
---|
WebTestClient.BodyContentSpec | JsonPathAssertions.isNumber() | |
---|
WebTestClient.BodyContentSpec | WebTestClient.BodyContentSpec.json(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(int expectedCount) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.nodeCount(Consumer<Integer> consumer) | Consume the count of nodes as result of the XPath evaluation. |
---|
WebTestClient.BodyContentSpec | XpathAssertions.nodeCount(Matcher<Integer> matcher) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.number(Consumer<Double> consumer) | Consume the result of the XPath evaluation as a Double. |
---|
WebTestClient.BodyContentSpec | XpathAssertions.number(Matcher<? super Double> matcher) | |
---|
WebTestClient.BodyContentSpec | XpathAssertions.string(Consumer<String> consumer) | Consume the result of the XPath evaluation as a String. |
---|
WebTestClient.BodyContentSpec | XpathAssertions.string(Matcher<? super String> matcher) | |
---|
<T> WebTestClient.BodyContentSpec | JsonPathAssertions.value(Consumer<T> consumer) | Consume the result of the JSONPath evaluation. |
---|
<T> WebTestClient.BodyContentSpec | JsonPathAssertions.value(Consumer<T> consumer, Class<T> targetType) | Consume the result of the JSONPath evaluation and provide a target class. |
---|
<T> WebTestClient.BodyContentSpec | JsonPathAssertions.value(Matcher<T> matcher) | |
---|
<T> WebTestClient.BodyContentSpec | JsonPathAssertions.value(Matcher<T> matcher, Class<T> targetType) | |
---|
WebTestClient.BodyContentSpec | WebTestClient.BodyContentSpec.xml(String expectedXml) | Parse expected and actual response content as XML and assert that the two are "similar", i.e. |
---|