Bump upstreams to SNAPSHOTs
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / utils / parser / AbstractFieldsTranslatorTest.java
index 96a31e827511b36c550a6e10b088711d05791486..33fc50f7aec24d1e471cba14c5c22fb4ea83bec6 100644 (file)
@@ -27,6 +27,7 @@ import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.common.XMLNamespace;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
+import org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack;
 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
 
 public abstract class AbstractFieldsTranslatorTest<T> {
@@ -98,13 +99,13 @@ public abstract class AbstractFieldsTranslatorTest<T> {
     public void setUp() throws Exception {
         final EffectiveModelContext schemaContextJukebox =
                 YangParserTestUtils.parseYangFiles(TestRestconfUtils.loadFiles("/jukebox"));
-        identifierJukebox = InstanceIdentifierContext.ofDataSchemaNode(schemaContextJukebox,
-            schemaContextJukebox.getDataChildByName(JUKEBOX_Q_NAME));
+        identifierJukebox = InstanceIdentifierContext.ofStack(
+            SchemaInferenceStack.ofDataTreePath(schemaContextJukebox, JUKEBOX_Q_NAME));
 
         final EffectiveModelContext schemaContextTestServices =
                 YangParserTestUtils.parseYangFiles(TestRestconfUtils.loadFiles("/test-services"));
-        identifierTestServices = InstanceIdentifierContext.ofDataSchemaNode(schemaContextTestServices,
-            schemaContextTestServices.getDataChildByName(TEST_DATA_Q_NAME));
+        identifierTestServices = InstanceIdentifierContext.ofStack(
+            SchemaInferenceStack.ofDataTreePath(schemaContextTestServices, TEST_DATA_Q_NAME));
     }
 
     protected abstract List<T> translateFields(InstanceIdentifierContext context, FieldsParam fields);