Added full YIID to ietf-restconf-monitoring DS
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / utils / mapping / RestconfMappingNodeUtilTest.java
index d14e396038c9a8ecea572b718c7e7bbf4fd8280a..4ea6d79469184f2267a2b169052353f3cb8cced4 100644 (file)
@@ -115,12 +115,11 @@ public class RestconfMappingNodeUtilTest {
         final String outputType = "XML";
         final URI uri = new URI("uri");
         final Module monitoringModule = schemaContextMonitoring.findModule(MonitoringModule.MODULE_QNAME).orElse(null);
+        final String streamName = "/nested-module:depth1-cont/depth2-leaf1";
 
-        final Map<QName, Object> map = prepareMap(path.getLastPathArgument().getNodeType().getLocalName(), uri, start,
-            outputType);
-
+        final Map<QName, Object> map = prepareMap(streamName, uri, start, outputType);
         final MapEntryNode mappedData = RestconfMappingNodeUtil.mapDataChangeNotificationStreamByIetfRestconfMonitoring(
-            path, start, outputType, uri, monitoringModule, schemaContextMonitoring);
+            path, start, outputType, uri, monitoringModule, schemaContextMonitoring, streamName);
         assertMappedData(map, mappedData);
     }