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 TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) boolean
matchesSafely
(String item) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, 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:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<String>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-