-
JAXPValidator
andValidationMatcher
now accept usingSchema
instances for the schema when validating instance documents. Issue #89. -
updated test dependency to Mockito 2.1.0 PR #87 by @PascalSchumacher.
- The
DocumentBuilderFactory
set onDiffBuilder
wasn't used properly whenignoreWhitespace
ornormalizeWhitespace
has been set. Issue #86.
-
Input.fromByteArray
andInput.fromString
now returnSource
s that can be used multiple times. Issue #84. -
The
DocumentBuilderFactory
used byDOMDifferenceEngine
is now configurable. Issue #83.
-
various code style fixes PR #74, PR #75, PR #78, PR #79, PR #80 by @georgekankava.
-
CompareMatcher
andValidationMatcher
threwNullPointerException
s when combined with another failingMatcher
. Issue #81.
-
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 theDifference
s contained within theDiff
. Issue #55
- implemented
DiffBuilder.withComparisonFormatter
mentioned in user guide. Issue #51 - eliminated dead-stores. PR #52 by @georgekankava.
- the
schemaURI
inValidator
has been pushed down toParsingValidator
since it is only used inside this class. - the mapping of
DifferenceEngine#setNamespaceContext
has been inverted from prefix -> URI to URI -> prefix in order to be consistent with the same concept inXPathEngine
. CommentLessSource
uses an XSLT stylesheet internally which lacked the requiredversion
attribute. 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.
- the xmlunit-parent POM no longer uses the deprecated
org.sonatype.oss:oss-parent
as its parent. - added new overloads to
XPathEngine
- fixed the XPath context used by the
byXPath
element selector so that "." now refers to the current element. Issue #39 ElementSelectors#conditionalBuilder
now stops at the first predicate returningtrue
, even if the associatedElementSelector
returns 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.