The headline feature of this new release are new Hamcrest Matchers / NUnit Constraints for XPath assertions.
In addition a few `DifferenceEvaluator` implementations have been added that may help when transitioning from XMLUnit for Java 1.x and a few bugs have been fixed, smaller improvements been made.
The full list of changes:
- fixed swapped constant assignments in `DifferenceEvaluators` PR #53 by @cboehme.
- added `CompareMatcher#withNamespaceContext` PR #54 by @cboehme.
- `DiffBuilder#withNamespaceContext` falsely claimed the map would pass prefixes to URIs rather than the other way around. PR #62 and issue #52 by @mariusneo.
- various code style fixes PR #64, PR #65, PR #67, PR #68, PR #69, PR #70 and PR #71 by @georgekankava.
- new `hasXPath` matchers that check for the existence of an XPath inside of a piece of XML or verify additional assertions on the XPath's stringified result. PR #63 and PR #66 by @mariusneo.
- added new implementations inside `DifferenceEvaluators` for common tasks like changing the outcome for specific differences or ignoring changes inside the XML prolog.
- `DiffBuilder.withComparisonFormatter` now also fully applies to the `Difference`s contained within the `Diff`. Issue #55
path: /en/oss/XMLUnit | #
After three alpha releases this is the final release of XMLUnit 2.0.0.
XMLUnit 2.x provides APIs that allow you to
- compare two XML documents
- validate XML documents against XML schemas or DTDs
- validate XML schemas
and provides simplified APIs for evaluating XPath expressions and XSLT transformations.
In addition there are Hamcrest matchers and NUnit constraints that help using XMLUnit as part of unit tests for code that produces XML.
XMLUnit 2.x builds on the ideas of XMLUnit for Java 1.x but provides a completely new API. XMLUnit for Java comes with a legacy module that provides a compatibility layer to ease the migration. A migration guide is available as part of the user guide.
XMLUnit.NET and XMLUnit for Java provide the same set of features with similar APIs that differ only to account for idioms of the respective platform.
XMLUnit 2.0.0 is available as source and binary release from GitHub: XMLUnit for Java and XMLUnit.NET.
XMLUnit for Java is also available via Maven Central, XMLUnit.NET is available via nuget.
Please report bugs via GitHub issues and feature request via the
xmlunit-general
mailing list hosted at Sourceforge
or as GitHub issues. See the contributing
guide for more details.
path: /en/oss/XMLUnit | #