Do not use ListenerRegistration 23/110323/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 07:55:36 +0000 (08:55 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 07:55:36 +0000 (08:55 +0100)
Use a plain Registration, as that is all we need.

Change-Id: Iebdda78c3707fb8a0389ded721bb81f1bfd28dcd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/server/mdsal/notifications/SessionNotificationProducerTest.java

index 8b273e951f49b75a203f3fe23c38eb746535e79c..ae858c02b43dec37f20b2a07698672b7efcf0583 100644 (file)
@@ -38,7 +38,7 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.mon
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfSessionEnd;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfSessionStart;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.ZeroBasedCounter32;
-import org.opendaylight.yangtools.concepts.ListenerRegistration;
+import org.opendaylight.yangtools.concepts.Registration;
 import org.opendaylight.yangtools.yang.common.Uint32;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -50,7 +50,7 @@ public class SessionNotificationProducerTest {
     @Mock
     private BaseNotificationPublisherRegistration registration;
     @Mock
-    private ListenerRegistration<?> listenerRegistration;
+    private Registration listenerRegistration;
     @Mock
     private NetconfNotificationCollector netconfNotificationCollector;
     @Mock