Delete netconf
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / xml / to / cnsn / test / XmlToCnSnTest.java
index f1a18d56a8de60241b64436aa299f2f3c3915de5..9745c955c2d2098b3667f4db0833afd0ad34f4b8 100644 (file)
@@ -7,14 +7,8 @@
  */
 package org.opendaylight.controller.sal.restconf.impl.xml.to.cnsn.test;
 
-import static org.junit.Assert.*;
-
 import org.junit.BeforeClass;
-import org.junit.Test;
-import org.opendaylight.controller.sal.rest.impl.XmlToCompositeNodeProvider;
-import org.opendaylight.controller.sal.restconf.impl.test.TestUtils;
 import org.opendaylight.controller.sal.restconf.impl.test.YangAndXmlAndDataSchemaLoader;
-import org.opendaylight.yangtools.yang.data.api.*;
 
 public class XmlToCnSnTest extends YangAndXmlAndDataSchemaLoader {
 
@@ -23,29 +17,4 @@ public class XmlToCnSnTest extends YangAndXmlAndDataSchemaLoader {
         dataLoad("/xml-to-cnsn/leafref");
     }
 
-    @Test
-    public void testXmlLeafrefToCnSn() {
-        CompositeNode compositeNode = TestUtils.readInputToCnSn("/xml-to-cnsn/leafref/xml/data.xml", false,
-                XmlToCompositeNodeProvider.INSTANCE);
-        assertNotNull(compositeNode);
-        assertNotNull(dataSchemaNode);
-        TestUtils.normalizeCompositeNode(compositeNode, modules, schemaNodePath);
-
-        assertEquals("cont", compositeNode.getNodeType().getLocalName());
-
-        SimpleNode<?> lf2 = null;
-        for (Node<?> childNode : compositeNode.getChildren()) {
-            if (childNode instanceof SimpleNode) {
-                if (childNode.getNodeType().getLocalName().equals("lf2")) {
-                    lf2 = (SimpleNode<?>) childNode;
-                    break;
-                }
-            }
-        }
-
-        assertNotNull(lf2);
-        assertTrue(lf2.getValue() instanceof String);
-        assertEquals("121", (String) lf2.getValue());
-    }
-
 }