From 7c90c40b204d801f604ec81df63df5c5207ee014 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 3 Feb 2022 09:41:44 +0100 Subject: [PATCH] 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 --- .../yang/data/codec/xml/NormalizedNodesToXmlTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.36.6