Fix NotificationListenerInvokerTest on Java 19+ 64/108064/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 29 Sep 2023 16:03:18 +0000 (18:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 29 Sep 2023 16:06:36 +0000 (18:06 +0200)
commitd93606f3965764225a98da0f5dbb76fc43bdec06
tree36935e8144fe07f13978e6bc2bfea819840c8c83
parent0a7abe1af4945b6dd295c9e631079a16f8088b05
Fix NotificationListenerInvokerTest on Java 19+

We cannot mock MethodHandle, as it is a sealed class on Java 19+. Adjust
the test to use String.toString() as the source of the MH.

Change-Id: Ieab28fdec5c703c2fcad8b14cd95ea3f49bd2a21
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-adapter/src/test/java/org/opendaylight/mdsal/binding/dom/adapter/invoke/NotificationListenerInvokerTest.java