Releases: xmlunit/xmlunit
XMLUnit for Java 2.1.1
This release fixes a single bug in the CompareMatcher
and ValidationMatcher
. If you are not using the Hamcrest matchers, there is no need to upgrade from 2.1.0.
The full list of changes:
XMLUnit for Java 2.1.0
The headline feature of this new release are new Hamcrest Matchers 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 theDiff
.
Issue #55
XMLUnit for Java 2.0.0
After three alpha releases this is the first release of XMLUnit for Java 2.x.
Change when compared to 2.0.0-alpha-04 are
- implemented
DiffBuilder.withComparisonFormatter
mentioned in user
guide.
Issue #51 - eliminated dead-stores.
PR #52 by
@georgekankava.
XMLUnit for Java 2.0.0-alpha-04
This is the third alpha release of XMLUnit for Java 2.0.0.
The implementation is considered stable enough for a production release. This is an alpha release as we need more people to try out the API in order to call it final.
Breaking Changes since 2.0.0-alpha-03
- the
schemaURI
inValidator
has been pushed down to
ParsingValidator
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
.
Other Changes since 2.0.0-alpha-03
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.
XMLUnit for Java 2.0.0-alpha-03
This is the second alpha release of XMLUnit for Java 2.0.0.
The implementation is considered stable enough for a production release. This is an alpha release as we need more people to try out the API in order to call it final.
Changes since 2.0.0-alpha-02
- 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
XMLUnit for Java 2.0.0-alpha-02
This is the initial alpha release of XMLUnit for Java 2.0.0.
The implementation is considered stable enough for a production release. This is an alpha release as we need more people to try out the API in order to call it final.