- The
DocumentBuilderFactoryset onDiffBuilderwasn't used properly whenignoreWhitespaceornormalizeWhitespacehas been set. Issue #86.
-
Input.fromByteArrayandInput.fromStringnow returnSources that can be used multiple times. Issue #84. -
The
DocumentBuilderFactoryused byDOMDifferenceEngineis now configurable. Issue #83.
-
various code style fixes PR #74, PR #75, PR #78, PR #79, PR #80 by @georgekankava.
-
CompareMatcherandValidationMatcherthrewNullPointerExceptions when combined with another failingMatcher. Issue #81.
-
fixed swapped constant assignments in
DifferenceEvaluatorsPR #53 by @cboehme. -
added
CompareMatcher#withNamespaceContextPR #54 by @cboehme. -
DiffBuilder#withNamespaceContextfalsely 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
hasXPathmatchers 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
DifferenceEvaluatorsfor common tasks like changing the outcome for specific differences or ignoring changes inside the XML prolog. -
DiffBuilder.withComparisonFormatternow also fully applies to theDifferences contained within theDiff. Issue #55
- implemented
DiffBuilder.withComparisonFormattermentioned in user guide. Issue #51 - eliminated dead-stores. PR #52 by @georgekankava.
- the
schemaURIinValidatorhas been pushed down toParsingValidatorsince it is only used inside this class. - the mapping of
DifferenceEngine#setNamespaceContexthas been inverted from prefix -> URI to URI -> prefix in order to be consistent with the same concept inXPathEngine. CommentLessSourceuses an XSLT stylesheet internally which lacked the requiredversionattribute. PR #47 by @phbenisc.Comparisonnow 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 isnullin these cases. Issue #48 implemented via PR #50 by @eguib.
- the xmlunit-parent POM no longer uses the deprecated
org.sonatype.oss:oss-parentas its parent. - added new overloads to
XPathEngine - fixed the XPath context used by the
byXPathelement selector so that "." now refers to the current element. Issue #39 ElementSelectors#conditionalBuildernow stops at the first predicate returningtrue, even if the associatedElementSelectorreturns false. Issue #40
This is the initial alpha release of XMLUnit.NET. We expect the API to change for the next release based on user feedback.