Bump upstreams for Silicon
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / PlainPatchDataTransactionUtilTest.java
index 297832bb613cbaf2e43a8413d5b41aff397ce774..23554fd88db7f7001611a8834a61fab8e8996a1e 100644 (file)
@@ -93,13 +93,14 @@ public class PlainPatchDataTransactionUtilTest {
                 .node(qnPlayer)
                 .node(qnGap)
                 .build();
-        this.schemaNodeForGap = DataSchemaContextTree.from(this.schema).getChild(this.iidGap).getDataSchemaNode();
+        this.schemaNodeForGap = DataSchemaContextTree.from(this.schema).findChild(this.iidGap).orElseThrow()
+                .getDataSchemaNode();
 
         this.iidJukebox = YangInstanceIdentifier.builder()
                 .node(qnJukebox)
                 .build();
         this.schemaNodeForJukebox = DataSchemaContextTree.from(this.schema)
-                .getChild(this.iidJukebox).getDataSchemaNode();
+                .findChild(this.iidJukebox).orElseThrow().getDataSchemaNode();
 
         this.leafGap = Builders.leafBuilder()
                 .withNodeIdentifier(new NodeIdentifier(qnGap))