From: Robert Varga Date: Thu, 3 Feb 2022 08:41:44 +0000 (+0100) Subject: Do not subclass XMLUnit X-Git-Tag: v8.0.0~50 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=7c90c40b204d801f604ec81df63df5c5207ee014;hp=c666b54bf6b9ba9d3aeb6965e5dc8ed8a2cdc564;p=yangtools.git Do not subclass XMLUnit We just want an assert, eliminate an Eclipse warning by using XMLAssert directly. Change-Id: I14443c83c473ee18c25e894c51a391c3c285a375 Signed-off-by: Robert Varga --- diff --git a/codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodesToXmlTest.java b/codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodesToXmlTest.java index 5043b809f6..28b6182e85 100644 --- a/codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodesToXmlTest.java +++ b/codec/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/NormalizedNodesToXmlTest.java @@ -31,7 +31,7 @@ import javax.xml.transform.stream.StreamResult; import org.custommonkey.xmlunit.Diff; import org.custommonkey.xmlunit.DifferenceListener; import org.custommonkey.xmlunit.IgnoreTextAndAttributeValuesDifferenceListener; -import org.custommonkey.xmlunit.XMLTestCase; +import org.custommonkey.xmlunit.XMLAssert; import org.custommonkey.xmlunit.XMLUnit; import org.junit.AfterClass; import org.junit.Before; @@ -167,7 +167,7 @@ public class NormalizedNodesToXmlTest { final DifferenceListener differenceListener = new IgnoreTextAndAttributeValuesDifferenceListener(); diff.overrideDifferenceListener(differenceListener); - new XMLTestCase() {}.assertXMLEqual(diff, true); + XMLAssert.assertXMLEqual(diff, true); } private NormalizedNode buildOuterContainerNode() {