Package org.xmlunit.assertj.error
Class ShouldBeSimilar
java.lang.Object
org.xmlunit.assertj.error.ShouldBeSimilar
- All Implemented Interfaces:
org.assertj.core.error.AssertionErrorFactory
- Since:
- XMLUnit 2.6.1
-
Method Summary
Modifier and TypeMethodDescriptionnewAssertionError(org.assertj.core.description.Description d, org.assertj.core.presentation.Representation representation) Createstatic ShouldBeSimilarshouldBeIdentical(String controlSystemId, String testSystemId, Comparison comparison, ComparisonFormatter formatter, boolean formatXml) static ShouldBeSimilarshouldBeSimilar(String controlSystemId, String testSystemId, Comparison comparison, ComparisonFormatter formatter, boolean formatXml)
-
Method Details
-
shouldBeIdentical
public static ShouldBeSimilar shouldBeIdentical(String controlSystemId, String testSystemId, Comparison comparison, ComparisonFormatter formatter, boolean formatXml) - Parameters:
controlSystemId- optional systemId of control documenttestSystemId- optional systemId of test documentcomparison- the comparison that failedformatter- formatter to useformatXml- whether to format the difference as XML- Returns:
- ErrorMessageFactory when documents are not identical
-
shouldBeSimilar
public static ShouldBeSimilar shouldBeSimilar(String controlSystemId, String testSystemId, Comparison comparison, ComparisonFormatter formatter, boolean formatXml) - Parameters:
controlSystemId- optional systemId of control documenttestSystemId- optional systemId of test documentcomparison- the comparison that failedformatter- formatter to useformatXml- whether to format the difference as XML- Returns:
- ErrorMessageFactory when documents are not similar
-
newAssertionError
public AssertionError newAssertionError(org.assertj.core.description.Description d, org.assertj.core.presentation.Representation representation) Createorg.junit.ComparisonFailure
if possible.- Specified by:
newAssertionErrorin interfaceorg.assertj.core.error.AssertionErrorFactory
-