Package org.eolang.jeo.matchers
Class SameXml
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<String>
-
- org.eolang.jeo.matchers.SameXml
-
- All Implemented Interfaces:
org.hamcrest.Matcher<String>
,org.hamcrest.SelfDescribing
public final class SameXml extends org.hamcrest.TypeSafeMatcher<String>
Matcher to check if the received XML document is the same as the expected one. Smart comparison of XML documents that ignores 'line' attributes.- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeTo(org.hamcrest.Description description)
boolean
matchesSafely(String item)
-
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
-
-
-
-
Constructor Detail
-
SameXml
public SameXml(com.jcabi.xml.XML xml)
Constructor.- Parameters:
xml
- Expected XML document.
-
SameXml
public SameXml(String expected)
Constructor.- Parameters:
expected
- Expected XML document.
-
-