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
  • Constructor Summary

    Constructors
    Constructor
    Description
    SameXml(com.jcabi.xml.XML xml)
    Constructor.
    SameXml(String expected)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • matchesSafely

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

      public void describeTo(org.hamcrest.Description description)