-package org.opendaylight.controller.sal.restconf.impl.test;
+package org.opendaylight.controller.sal.restconf.impl.xml.to.cnsn.test;
import static org.junit.Assert.*;
import org.junit.Test;
import org.opendaylight.controller.sal.rest.impl.XmlToCompositeNodeProvider;
-import org.opendaylight.controller.sal.restconf.impl.*;
+import org.opendaylight.controller.sal.restconf.impl.CompositeNodeWrapper;
import org.opendaylight.controller.sal.restconf.impl.test.TestUtils;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.*;
DataSchemaNode dataSchemaNode = TestUtils.resolveDataSchemaNode(module, null);
assertNotNull(dataSchemaNode);
- RestconfImpl restconf = RestconfImpl.getInstance();
- ControllerContext.getInstance().setSchemas(TestUtils.loadSchemaContext(modules));
-
- TestUtils.prepareMockForRestconfBeforeNormalization(modules, dataSchemaNode, restconf);
-
- restconf.createConfigurationData(moduleName + ":" + schemaName, compositeNode);
+ TestUtils.normalizeCompositeNode(compositeNode, modules, dataSchemaNode, moduleName + ":" + schemaName);
SimpleNode<?> lf11 = getLf11(compositeNode);
assertTrue(lf11.getValue() instanceof QName);