public class IdenticalHtmlMatcher extends AbstractHtmlDiffMatcher
Document
s. 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, matches
public IdenticalHtmlMatcher(String expected)
protected boolean matches(org.custommonkey.xmlunit.DetailedDiff diff)
matches
in class AbstractHtmlDiffMatcher
Copyright © 2021. All rights reserved.