类 XpathAssertions
java.lang.Object
cn.taketoday.test.web.reactive.server.XpathAssertions
XPath assertions for the
WebTestClient.- 从以下版本开始:
- 4.0
- 作者:
- Eric Deandrea, Rossen Stoyanchev
-
嵌套类概要
嵌套类修饰符和类型类说明private static interfaceLets us be able to use lambda expressions that could throw checked exceptions, sinceXpathExpectationsHelperthrowsExceptionon its methods. -
字段概要
字段 -
构造器概要
构造器构造器说明XpathAssertions(WebTestClient.BodyContentSpec spec, String expression, Map<String, String> namespaces, Object... args) -
方法概要
修饰符和类型方法说明private WebTestClient.BodyContentSpecDelegates toXpathExpectationsHelper.doesNotExist(byte[], String).booleanexists()Delegates toXpathExpectationsHelper.exists(byte[], String).private Stringprivate byte[]inthashCode()private static XpathExpectationsHelperisEqualTo(boolean expectedValue) nodeCount(int expectedCount) 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.
-
字段详细资料
-
bodySpec
-
xpathHelper
-
-
构造器详细资料
-
XpathAssertions
-
-
方法详细资料
-
initXpathHelper
-
isEqualTo
-
isEqualTo
-
isEqualTo
-
exists
Delegates toXpathExpectationsHelper.exists(byte[], String). -
doesNotExist
Delegates toXpathExpectationsHelper.doesNotExist(byte[], String). -
nodeCount
-
string
-
number
-
nodeCount
-
string
Consume the result of the XPath evaluation as a String. -
number
Consume the result of the XPath evaluation as a Double. -
nodeCount
Consume the count of nodes as result of the XPath evaluation. -
assertWith
-
getContent
private byte[] getContent() -
getCharset
-
equals
-
hashCode
public int hashCode()
-