Class 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
    • 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.
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(String item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<String>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)