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
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) booleanmatchesSafely(String item) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Constructor Details
-
SameXml
public SameXml(com.jcabi.xml.XML xml) Constructor.- Parameters:
xml- Expected XML document.
-
SameXml
Constructor.- Parameters:
expected- Expected XML document.
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<String>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-