import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
import org.opendaylight.yangtools.yang.data.api.schema.DOMSourceAnyxmlNode;
-import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
+import org.opendaylight.yangtools.yang.data.spi.node.ImmutableNodes;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import org.xmlunit.builder.DiffBuilder;
@Test
public void testCreateEditConfigStructure() throws Exception {
- final var data = Builders.anyXmlBuilder()
+ final var data = ImmutableNodes.newAnyxmlBuilder(DOMSource.class)
.withNodeIdentifier(createNodeId(path.getLastPathArgument().getNodeType().getLocalName()))
.withValue(source)
.build();
@Test
public void testSelectFromDataStructure() throws Exception {
- final var data = Builders.anyXmlBuilder()
+ final var data = ImmutableNodes.newAnyxmlBuilder(DOMSource.class)
.withNodeIdentifier(createNodeId(path.getLastPathArgument().getNodeType().getLocalName()))
.withValue(new DOMSource(XmlUtil.readXmlToDocument(getConfigData).getDocumentElement()))
.build();