Bump upstreams to SNAPSHOTs
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / netconf / sal / streams / listeners / NotificationListenerTest.java
index a906bcf98d2877b293d2b716432a75129580f063..732c327864ed61da91a1cf659aa2ed103c25ab4e 100644 (file)
@@ -198,11 +198,8 @@ public class NotificationListenerTest {
     }
 
     private String prepareJson(final DOMNotification notificationData, final Absolute schemaPathNotifi) {
-        final List<Absolute> paths = new ArrayList<>();
-        paths.add(schemaPathNotifi);
-        final List<NotificationListenerAdapter> listNotifi =
-                Notificator.createNotificationListener(paths, "stream-name", NotificationOutputType.JSON.toString(),
-                        controllerContext);
+        final List<NotificationListenerAdapter> listNotifi = Notificator.createNotificationListener(
+            List.of(schemaPathNotifi), "stream-name", NotificationOutputType.JSON.toString(), controllerContext);
         final NotificationListenerAdapter notifi = listNotifi.get(0);
         return requireNonNull(notifi.prepareJson(schemaContext, notificationData));
     }