SourceForge

XMLUnit 2.x Development Moved to GitHub

XMLUnit provides help with testing code that creates or consumes XML.

XMLUNit 2.x is available for both Java and .NET with a similar API. Development of this version has moved to a GitHub organization[1] with two git repositories for Java and .NET respectively.

All discussion about XMLUnit independent of any version will happen on the XMLUnit general mailing list[2].

XMLUnit for Java 1.x is no longer maintained, please use the legacy artifacts of XMLUnit 2.x if you still need APIs compatible with XMLUnit 1.x. We keep using the Sourceforge infrastructure that has served as well for many years to host forums and mailing lists.

XMLUnit for .NET 0.x is not maintained any longer.

[1] https://github.com/xmlunit
[2] https://sourceforge.net/p/xmlunit/mailman/xmlunit-general/

License

BSD License

$300 Free Credits to Build on Google Cloud Icon

$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.

Start Free

User Ratings

4.4 out of 5 stars

★★★★★

★★★★

★★★

★★

6

0

0

0

1

ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

User Reviews

  • Xmlunit works fine.

    1 user found this review helpful.

  • Xmlunit works great.

    1 user found this review helpful.

  • This app is simply the best. I suggest you guys try it out now.

  • Love its user-friendly interface. Definitely, there's nothing more I could ask for.

  • It Is very useful Library for my tests. The Error Messages (in case of variations) are detailed enough (in most cases i only need the XPath) I initizialize XMLUnit with: @BeforeClass public static void initXmlUnit() { XMLUnit.setIgnoreWhitespace(true); XMLUnit.setIgnoreAttributeOrder(true); XMLUnit.setIgnoreComments(true); XMLUnit.setIgnoreDiffBetweenTextAndCDATA(true); } And run my Tests with : Diff diff = XMLUnit.compareXML(createInputSource(controlXml), createInputSource(resultXml)); diff.overrideDifferenceListener(new MyDifferenceListener()); // Special Cases: ignore some nodes and validate some Nodes with BigDecimal or Date compare() diff.overrideElementQualifier(new MyElementQualifier()); // Special Cases: ignore the Element-order of maxOccure > 1 Elements. assertTrue("XML similar " + diff.toString(), diff.similar()); assertTrue("XML identical " + diff.toString(), diff.identical()); // Helper Method: protected InputSource createInputSource(final byte[] xml) { return new InputSource(new ByteArrayInputStream(xml)); } FAZIT: XML Unit is Easy to Use. BW: is there a release Plan for 1.4? In SVN there are nice new Helper Classes like "ElementSelectors". With friendly regards, Harald

    1 user found this review helpful.

Read more reviews >

Read the original on sourceforge.net ↗