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