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;
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);
}
}