X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-notifications-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fnotifications%2Fimpl%2Fops%2FGetTest.java;h=05ed9bf006f79c2cc7937da1e7064f5d76364d6b;hp=6f38f24f10c02e3e6dac9c7147fb24104f2ba9db;hb=1e884647502a8d91f8a57bde8193c60b9bbcce0d;hpb=b07c707c750b890bac8edca75e130a6406bc99a9 diff --git a/opendaylight/netconf/netconf-notifications-impl/src/test/java/org/opendaylight/controller/netconf/notifications/impl/ops/GetTest.java b/opendaylight/netconf/netconf-notifications-impl/src/test/java/org/opendaylight/controller/netconf/notifications/impl/ops/GetTest.java index 6f38f24f10..05ed9bf006 100644 --- a/opendaylight/netconf/netconf-notifications-impl/src/test/java/org/opendaylight/controller/netconf/notifications/impl/ops/GetTest.java +++ b/opendaylight/netconf/netconf-notifications-impl/src/test/java/org/opendaylight/controller/netconf/notifications/impl/ops/GetTest.java @@ -8,14 +8,9 @@ package org.opendaylight.controller.netconf.notifications.impl.ops; -import static org.junit.Assert.assertTrue; - import com.google.common.collect.Lists; import java.io.IOException; -import org.custommonkey.xmlunit.Diff; -import org.custommonkey.xmlunit.XMLUnit; import org.junit.Test; -import org.opendaylight.controller.netconf.notifications.impl.ops.Get; import org.opendaylight.controller.netconf.util.xml.XmlUtil; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev080714.StreamNameType; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netmod.notification.rev080714.netconf.Streams; @@ -41,22 +36,20 @@ public class GetTest { final Document response = getBlankResponse(); Get.serializeStreamsSubtree(response, streams); - final Diff diff = XMLUnit.compareXML(XmlUtil.toString(response), + NotificationsTransformUtilTest.compareXml(XmlUtil.toString(response), "\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "base\n" + - "description\n" + - "false\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "\n"); - - assertTrue(diff.toString(), diff.identical()); + "\n" + + "\n" + + "\n" + + "\n" + + "base\n" + + "description\n" + + "false\n" + + "\n" + + "\n" + + "\n" + + "\n" + + "\n"); } private Document getBlankResponse() throws IOException, SAXException {