public class XpathAssertions
extends java.lang.Object
WebTestClient
.Modifier and Type | Method and Description |
---|---|
WebTestClient.BodyContentSpec |
doesNotExist()
Delegates to
XpathExpectationsHelper.doesNotExist(byte[], String) . |
boolean |
equals(java.lang.Object obj) |
WebTestClient.BodyContentSpec |
exists()
Delegates to
XpathExpectationsHelper.exists(byte[], String) . |
int |
hashCode() |
WebTestClient.BodyContentSpec |
isEqualTo(boolean expectedValue)
|
WebTestClient.BodyContentSpec |
isEqualTo(java.lang.Double expectedValue)
|
WebTestClient.BodyContentSpec |
isEqualTo(java.lang.String expectedValue)
|
WebTestClient.BodyContentSpec |
nodeCount(java.util.function.Consumer<java.lang.Integer> consumer)
Consume the count of nodes as result of the XPath evaluation.
|
WebTestClient.BodyContentSpec |
nodeCount(int expectedCount)
|
WebTestClient.BodyContentSpec |
nodeCount(org.hamcrest.Matcher<java.lang.Integer> matcher)
|
WebTestClient.BodyContentSpec |
number(java.util.function.Consumer<java.lang.Double> consumer)
Consume the result of the XPath evaluation as a Double.
|
WebTestClient.BodyContentSpec |
number(org.hamcrest.Matcher<? super java.lang.Double> matcher)
|
WebTestClient.BodyContentSpec |
string(java.util.function.Consumer<java.lang.String> consumer)
Consume the result of the XPath evaluation as a String.
|
WebTestClient.BodyContentSpec |
string(org.hamcrest.Matcher<? super java.lang.String> matcher)
|
public WebTestClient.BodyContentSpec isEqualTo(java.lang.String expectedValue)
public WebTestClient.BodyContentSpec isEqualTo(java.lang.Double expectedValue)
public WebTestClient.BodyContentSpec isEqualTo(boolean expectedValue)
public WebTestClient.BodyContentSpec exists()
XpathExpectationsHelper.exists(byte[], String)
.public WebTestClient.BodyContentSpec doesNotExist()
XpathExpectationsHelper.doesNotExist(byte[], String)
.public WebTestClient.BodyContentSpec nodeCount(int expectedCount)
public WebTestClient.BodyContentSpec string(org.hamcrest.Matcher<? super java.lang.String> matcher)
public WebTestClient.BodyContentSpec number(org.hamcrest.Matcher<? super java.lang.Double> matcher)
public WebTestClient.BodyContentSpec nodeCount(org.hamcrest.Matcher<java.lang.Integer> matcher)
public WebTestClient.BodyContentSpec string(java.util.function.Consumer<java.lang.String> consumer)
public WebTestClient.BodyContentSpec number(java.util.function.Consumer<java.lang.Double> consumer)
public WebTestClient.BodyContentSpec nodeCount(java.util.function.Consumer<java.lang.Integer> consumer)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object