Fix NotificationListenerInvokerTest on Java 19+ 80/108280/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 29 Sep 2023 16:03:18 +0000 (18:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Oct 2023 09:06:33 +0000 (11:06 +0200)
commit8072e0a7f0a1ee82d3304c6c67470f8883827421
tree21c60c2dd47fc5b506e5931109b397d99295754b
parent050911a9d005d95bcbe721b20f9af0ba9cabdd0d
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>
(cherry picked from commit d93606f3965764225a98da0f5dbb76fc43bdec06)
binding/mdsal-binding-dom-adapter/src/test/java/org/opendaylight/mdsal/binding/dom/adapter/invoke/NotificationListenerInvokerTest.java