public class XmlExpectationsHelper extends ObjectSE
コンストラクターと説明 |
---|
XmlExpectationsHelper() |
修飾子と型 | メソッドと説明 |
---|---|
void | assertNode(StringSE content, Matcher<? super NodeSE> matcher) |
void | assertSource(StringSE content, Matcher<? super SourceSE> matcher) コンテンツを DOMSource SE として解析し、Matcher を適用します。 |
void | assertXmlEqual(StringSE expected, StringSE actual) 予想されるコンテンツ文字列と実際のコンテンツ文字列を XML として解析し、2 つが「類似」していることを表明します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public void assertNode(StringSE content, Matcher<? super NodeSE> matcher) throws ExceptionSE
ExceptionSE
public void assertSource(StringSE content, Matcher<? super SourceSE> matcher) throws ExceptionSE
DOMSource
SE として解析し、Matcher
を適用します。ExceptionSE
public void assertXmlEqual(StringSE expected, StringSE actual) throws ExceptionSE
このメソッドの使用は、XMLUnit ライブラリが使用可能であることを前提としています。
expected
- 予期される XML コンテンツ actual
- 実際の XML コンテンツ ExceptionSE
MockMvcResultMatchers.xpath(String, Object...)
, MockMvcResultMatchers.xpath(String, Map, Object...)