Registry / testing / xmlunit-matchers

xmlunit-matchers

JSON →
library2.11.0javamavenunverified

XMLUnit for Java Hamcrest Matchers provides Hamcrest matchers for comparing and validating XML documents.

<dependency> <groupId>org.xmlunit</groupId> <artifactId>xmlunit-matchers</artifactId> <version>2.11.0</version> </dependency>
INSTALL
IMPORT
SIG · XMLUNIT-MATCHERS
X
xmlunit-matchers
testingjavav2.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompareMatcher
org.xmlunit.matchers.CompareMatcher

Compares two XML strings for identity using XMLUnit matchers.

import org.xmlunit.matchers.CompareMatcher; import static org.hamcrest.MatcherAssert.assertThat; public class Example { public static void main(String[] args) { String expected = "<root><item>value</item></root>"; String actual = "<root><item>value</item></root>"; assertThat(actual, CompareMatcher.isIdenticalTo(expected)); System.out.println("XMLs are identical"); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.11.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Resources
xmlunit-matchers — mvn dependency:get xmlunit-matchers · libregistry