This new pre-release introduces two backwards incompatible changes over 2.0.0-alpha-03:
- the mapping of
DifferenceEngine#setNamespaceContext
has been inverted from prefix -> URI to URI -> prefix in order to be consistent with the same concept inXPathEngine
. - the
SchemaURI
propetty ofValidator
has been removed in XMLUnit.NET and pushed toParsingValidator
in XMLUnit for Java.
Additional changes:
CommentLessSource
uses an XSLT stylesheet internally which lacked the requiredversion
attribute in XMLUnit for Java. PR #47 by @phbenisc.Comparison
now also contains the XPath of the parent of the compared nodes or attributes which is most useful in cases of missing nodes/attributes because the XPath on one side isnull
in these cases. Issue #48 implemented via PR #50 by @eguib.
This is still an alpha release as the API may well change based on
your feedback. Please provide feedback about the API in case it needs
to get adapted before the final release on the
xmlunit-general
list or via GitHub issues.
XMLUnit 2.0.0-alpha-04 is available as GitHub release via https://github.com/xmlunit/xmlunit/releases/tag/v2.0.0-alpha-04/ and https://github.com/xmlunit/xmlunit.net/releases/tag/v2.0.0-alpha-04/ respectively.
XMLUnit for Java is also available via Maven Central.
<dependency> <groupId>org.xmlunit</groupId> <artifactId>xmlunit-core</artifactId> <version>2.0.0-alpha-04</version> </dependency>
with additional artifacts xmlunit-matchers
and
xmlunit-legacy
.
XMLUnit.NET is also available as nuget packages XMLUnit.Core, XMLUnit.NUnit2.Constraints and XMLUnit.NUnit3.Constraints.
For more information please visit http://www.xmlunit.org.
path: /en/oss/XMLUnit | #