クラス AbstractXpathAssertions<B>
java.lang.ObjectSE
org.springframework.test.web.support.AbstractXpathAssertions<B>
- 型パラメーター:
B- ボディスペックの種類 (RestTestClient と WebTestClient 特有)
- 既知の直属サブクラス
XpathAssertions, XpathAssertions
RestTestClient および WebTestClient で XPath アサーションを適用するための基本クラス。
- 導入:
- 7.0
- 作成者:
- Rob Worsnop, Rossen Stoyanchev
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明protected static interfaceXpathExpectationsHelperはメソッドでExceptionSE をスローするため、チェック例外をスローできるラムダ式を使用できるようになります。コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明protected Bbooleanexists()protected Bボディスペックを返します。protected StringSEprotected abstract byte[]サブクラスは、レスポンスコンテンツへのアクセスを提供するためにこれを実装する必要があります。protected abstract OptionalSE<HttpHeaders> サブクラスは、レスポンスヘッダーへのアクセスを提供するためにこれを実装する必要があります。protected XpathExpectationsHelperXpathExpectationsHelper を返します。inthashCode()isEqualTo(boolean expectedValue) nodeCount(int expectedCount) nodeCount(ConsumerSE<IntegerSE> consumer) XPath 評価の結果としてノードの数を消費します。number(ConsumerSE<DoubleSE> consumer) XPath 評価の結果を Double として使用します。string(ConsumerSE<StringSE> consumer) XPath 評価の結果を文字列として使用します。
コンストラクターの詳細
AbstractXpathAssertions
メソッドの詳細
getBodySpec
ボディスペックを返します。getXpathHelper
XpathExpectationsHelper を返します。getResponseHeaders
サブクラスは、レスポンスヘッダーへのアクセスを提供するためにこれを実装する必要があります。getContent
protected abstract byte[] getContent()サブクラスは、レスポンスコンテンツへのアクセスを提供するためにこれを実装する必要があります。isEqualTo
isEqualTo
isEqualTo
exists
doesNotExist
nodeCount
string
XPath 評価の結果を文字列として使用します。number
XPath 評価の結果を Double として使用します。nodeCount
XPath 評価の結果としてノードの数を消費します。assertWith
getCharset
equals
hashCode