Migrate users of Optional.get()
[netconf.git] / restconf / restconf-nb / src / test / java / org / opendaylight / restconf / nb / rfc8040 / streams / listeners / XmlNotificationListenerTest.java
index d5443bcfbbac17e9d9f62b6a03aa35d06742dada..2fe629e0960863535c618f8601d1bfb6ae58e900 100644 (file)
@@ -213,6 +213,6 @@ public class XmlNotificationListenerTest {
         final NotificationListenerAdapter notifiAdapter = ListenersBroker.getInstance().registerNotificationListener(
                 schemaPathNotifi, "xml-stream", NotificationOutputTypeGrouping.NotificationOutputType.XML);
         return notifiAdapter.formatter().eventData(SCHEMA_CONTEXT, notificationData, Instant.now(), false,
-                false, false).get();
+                false, false).orElseThrow();
     }
 }