X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-bierman02%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Fstreams%2Flisteners%2FNotificationListenerTest.java;h=079f14f71f1b87a49f136b1fee900ff5486bb370;hb=2c69dd7eb97b9e5a8cc7fd17d12bf792e9113ce0;hp=fb6bb716878b34a9fdcffbec6587151a3c13b018;hpb=de76f7996dc99d8580345e20ac4cd6e90330037f;p=netconf.git diff --git a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/netconf/sal/streams/listeners/NotificationListenerTest.java b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/netconf/sal/streams/listeners/NotificationListenerTest.java index fb6bb71687..079f14f71f 100644 --- a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/netconf/sal/streams/listeners/NotificationListenerTest.java +++ b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/netconf/sal/streams/listeners/NotificationListenerTest.java @@ -26,9 +26,9 @@ import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.mockito.MockitoAnnotations; -import org.opendaylight.controller.md.sal.dom.api.DOMNotification; import org.opendaylight.controller.md.sal.rest.common.TestRestconfUtils; import org.opendaylight.controller.sal.restconf.impl.test.TestUtils; +import org.opendaylight.mdsal.dom.api.DOMNotification; import org.opendaylight.netconf.sal.restconf.impl.ControllerContext; import org.opendaylight.yang.gen.v1.urn.sal.restconf.event.subscription.rev140708.NotificationOutputTypeGrouping.NotificationOutputType; import org.opendaylight.yangtools.util.SingletonSet; @@ -234,9 +234,7 @@ public class NotificationListenerTest { Notificator.createNotificationListener(paths, "stream-name", NotificationOutputType.JSON.toString(), controllerContext); final NotificationListenerAdapter notifi = listNotifi.get(0); - notifi.setNotification(notificationData); - notifi.setSchemaContext(schemaContext); - final String result = notifi.prepareJson(); + final String result = notifi.prepareJson(schemaContext, notificationData); return Preconditions.checkNotNull(result); } }