Class XMLContentAssert

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<XMLContentAssert,​java.lang.String>, org.assertj.core.api.Descriptable<XMLContentAssert>, org.assertj.core.api.ExtensionPoints<XMLContentAssert,​java.lang.String>

    public class XMLContentAssert
    extends org.assertj.core.api.AbstractAssert<XMLContentAssert,​java.lang.String>
    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static XMLContentAssert assertThat​(java.lang.String actual)  
      XMLContentAssert hasTheSameContentAs​(java.lang.String expectedXml)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2011 - this method is checking only number of xpaths and not the whole xml document.
      XMLContentAssert ignoreComments()  
      XMLContentAssert ignoreNodeOrder()  
      XMLContentAssert ignoreWhitespaces()  
      XMLContentAssert isIdenticalTo​(java.lang.String expectedXml)  
      XMLContentAssert isIdenticalToResource​(java.lang.String resourceName)  
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • assertThat

        public static XMLContentAssert assertThat​(java.lang.String actual)
      • isIdenticalToResource

        public XMLContentAssert isIdenticalToResource​(java.lang.String resourceName)
      • isIdenticalTo

        public XMLContentAssert isIdenticalTo​(java.lang.String expectedXml)
      • hasTheSameContentAs

        @Deprecated(since="2011",
                    forRemoval=true)
        public XMLContentAssert hasTheSameContentAs​(java.lang.String expectedXml)
                                             throws org.xml.sax.SAXException,
                                                    java.io.IOException,
                                                    org.custommonkey.xmlunit.exceptions.XpathException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 2011 - this method is checking only number of xpaths and not the whole xml document. Use isIdenticalTo(String)
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        org.custommonkey.xmlunit.exceptions.XpathException