Fix adapters retaining state
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / streams / listeners / NotificationListenerTest.java
index 0fb8f3b4abddb86ac5d4383f87281389ef606d96..33328bc2d11a80e0b48a98e6bf015583f6e07c32 100644 (file)
@@ -222,9 +222,7 @@ public class NotificationListenerTest {
         final List<NotificationListenerAdapter> listNotifi =
                 Notificator.createNotificationListener(paths, "stream-name", NotificationOutputType.JSON.toString());
         final NotificationListenerAdapter notifi = listNotifi.get(0);
-        notifi.setNotification(notificationData);
-        notifi.setSchemaContext(this.schmeaCtx);
-        final String result = notifi.prepareJson();
+        final String result = notifi.prepareJson(schmeaCtx, notificationData);
         return Preconditions.checkNotNull(result);
     }
 }