X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Ftest%2FXmlUnitUtil.java;h=4cd7fccd25489f79e82a4d6c64ec34e492d9dd3b;hb=23fe9ca678ada6263fec5dd996f4025e4a32fcf5;hp=e8a453e5d3b9da48431f4886388d89457ff52804;hpb=7f0272398ce3dab7ceddd998c7bb510df3b28838;p=controller.git diff --git a/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/test/XmlUnitUtil.java b/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/test/XmlUnitUtil.java index e8a453e5d3..4cd7fccd25 100644 --- a/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/test/XmlUnitUtil.java +++ b/opendaylight/netconf/netconf-util/src/test/java/org/opendaylight/controller/netconf/util/test/XmlUnitUtil.java @@ -16,6 +16,7 @@ import org.custommonkey.xmlunit.AbstractNodeTester; import org.custommonkey.xmlunit.NodeTest; import org.custommonkey.xmlunit.NodeTestException; import org.custommonkey.xmlunit.NodeTester; +import org.opendaylight.controller.config.util.xml.XmlUtil; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -88,7 +89,7 @@ public class XmlUnitUtil { @Override public void noMoreNodes(NodeTest forTest) throws NodeTestException { - assertTrue(elementFound); + assertTrue(XmlUtil.toString(doc), elementFound); } }; assertNodeTestPasses(nt, tester, new short[]{Node.ELEMENT_NODE}, true);