Class CompareAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.xmlunit.assertj3.CompareAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<CompareAssert,Object>, org.assertj.core.api.Descriptable<CompareAssert>, org.assertj.core.api.ExtensionPoints<CompareAssert,Object>, DifferenceEngineConfigurer<CompareAssert>

public class CompareAssert extends org.assertj.core.api.AbstractAssert<SELF,ACTUAL> implements DifferenceEngineConfigurer<CompareAssert>
Assertion methods for XMLs comparison.

Simple Example

 import static org.xmlunit.assertj.XmlAssert.assertThat;

 final String control = "<a><b attr=\"abc\"></b></a>";
 final String test = "<a><b attr=\"xyz\"NodeAssertFactory></b></a>";

 assertThat(test).and(control).areIdentical();
 assertThat(test).and(control).areNotSimilar();
 
Since:
XMLUnit 2.8.1