public class IdenticalHtmlMatcher extends AbstractHtmlDiffMatcher
Documents. Two documents are considered to be "identical" if
they contain the same elements and attributes in the same order.
This matcher is a ExpectedValueProvider for knowing the original expected
value. Thanks to this information, OghamAssertions will generate a
ComparisonFailure with the expected string and actual string in order
to be able to visualize the differences on sources directly in the IDE.
See HtmlUtils for more information about "identical" HTML.
diff, expected, name, printer| Constructor and Description |
|---|
IdenticalHtmlMatcher(String expected) |
IdenticalHtmlMatcher(String expected,
Consumer<String> printer) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(org.custommonkey.xmlunit.DetailedDiff diff) |
String |
toString() |
comparisonMessage, describeTo, getExpectedValue, matchespublic IdenticalHtmlMatcher(String expected)
protected boolean matches(org.custommonkey.xmlunit.DetailedDiff diff)
matches in class AbstractHtmlDiffMatcherCopyright © 2021. All rights reserved.