Class XpathAssertions
java.lang.Object
org.springframework.test.web.support.AbstractXpathAssertions<WebTestClient.BodyContentSpec>
org.springframework.test.web.reactive.server.XpathAssertions
XPath assertions for the
WebTestClient.- Since:
- 5.1
- Author:
- Eric Deandrea, Rossen Stoyanchev, Rob Worsnop
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractXpathAssertions
AbstractXpathAssertions.CheckedExceptionTask -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]Subclasses must implement this to provide access to the response content.protected Optional<HttpHeaders> Subclasses must implement this to provide access to response headers.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.in favor ofConsumer-based variantsDeprecated, for removal: This API element is subject to removal in a future version.in favor ofConsumer-based variantsMethods inherited from class AbstractXpathAssertions
assertWith, doesNotExist, equals, exists, getBodySpec, getCharset, getXpathHelper, hashCode, isEqualTo, isEqualTo, isEqualTo, nodeCount, nodeCount, number, string
-
Method Details
-
getResponseHeaders
Description copied from class:AbstractXpathAssertionsSubclasses must implement this to provide access to response headers.- Specified by:
getResponseHeadersin classAbstractXpathAssertions<WebTestClient.BodyContentSpec>
-
getContent
protected byte[] getContent()Description copied from class:AbstractXpathAssertionsSubclasses must implement this to provide access to the response content.- Specified by:
getContentin classAbstractXpathAssertions<WebTestClient.BodyContentSpec>
-
string
@Deprecated(since="7.0", forRemoval=true) public WebTestClient.BodyContentSpec string(Matcher<? super String> matcher) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofConsumer-based variants -
number
@Deprecated(since="7.0", forRemoval=true) public WebTestClient.BodyContentSpec number(Matcher<? super Double> matcher) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofConsumer-based variants -
nodeCount
@Deprecated(since="7.0", forRemoval=true) public WebTestClient.BodyContentSpec nodeCount(Matcher<? super Integer> matcher) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofConsumer-based variants
-
Consumer-based variants