XMLUnit v2.7.0 Release NotesRelease Date: 2020-05-12 // 3 months ago
The biggest changes are to the placeholder and assertj modules. The assertj module should now work with AssertJ 3.15+.
This version contains a backwards incompatible change to the
PlaceholderHandlerinterface that is part of the experimental placeholders module: The
evaluatemethod now receives a variable number of string arguments in addition to the textual content of the element/attribute. This allows placeholders like
✅ the AssertJ tests now pass on non-English locales as well
➕ added a workaround for a binary incompatible change in AssertJ that caused xmlunit-assertj to be incompatible with AssertJ 3.15.0
avoid unnecessary creation of
DOMDifferenceEnginewhen a custom factory has been provided to
Previous changes from v2.6.4
🚀 This release fixes a bug that affects the XPath for missing nodes in certain corner cases and improves the AsssertJ module. In particular XMLUnit 2.6.4 is supposed to be compatible with AssertJ 3.13.x.
The full list of changes:
the dependencies on JAXB implementation and its transitive
✅ dependencies has been promoted from test scope to optional for Java
9 and later
hasXPathassertions to xmlunit-assertj.
extractingAttributemethod to xmlunit-assertj.
xmlunit-assertj should now work with AssertJ-Core 3.13.x
the XPath values for comparisons resulting in
differences could be wrong when
NodeFilters were present.
xmlunit-legacy will now use
NewDifferenceEngineeven when an
ElementQualifierdifferent from the built-in ones is used.