Peel DataSchemaNode-only users of InstanceIdentifierContext
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / input / to / cnsn / test / RestPutListDataTest.java
index c4455df65814af620181d743833ce0c385d5adeb..d886dc3c0dc7b0f52784621e8320cdd4b6ec52ea 100644 (file)
@@ -201,8 +201,9 @@ public class RestPutListDataTest {
             testNodeContainer.withChild(leafKey2.build());
         }
 
-        final NormalizedNodeContext testCompositeContext = new NormalizedNodeContext(new InstanceIdentifierContext(
-                null, testNodeSchemaNode, null, schemaContextTestModule), testNodeContainer.build());
+        final NormalizedNodeContext testCompositeContext = new NormalizedNodeContext(
+                InstanceIdentifierContext.ofDataSchemaNode(schemaContextTestModule, testNodeSchemaNode),
+                testNodeContainer.build());
 
         final UriInfo uriInfo = Mockito.mock(UriInfo.class);
         restconfImpl.updateConfigurationData(toUri(uriKey1, uriKey2), testCompositeContext, uriInfo);