X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-dom-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fdom%2Fcodec%2Fimpl%2FMdsal724Test.java;h=8f72441c8bfa4534653325242bdbd5284be53a74;hb=ecdcdb340457ded6898193197e88ea33c84d58ae;hp=33da2fe7ece7e8635add12a28e7d993fe986e086;hpb=60039d4d027e172f6e1d644fb1c2fa60688c06c0;p=mdsal.git diff --git a/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal724Test.java b/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal724Test.java index 33da2fe7ec..8f72441c8b 100644 --- a/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal724Test.java +++ b/binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/Mdsal724Test.java @@ -7,8 +7,6 @@ */ package org.opendaylight.mdsal.binding.dom.codec.impl; -import static org.hamcrest.CoreMatchers.startsWith; -import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThrows; @@ -26,7 +24,9 @@ public class Mdsal724Test extends AbstractBindingCodecTest { final var iid = InstanceIdentifier.create((Class) OutOfPixieDustNotification.class); final var ex = assertThrows(IllegalArgumentException.class, () -> codecContext.toYangInstanceIdentifier(iid)); - assertThat(ex.getMessage(), startsWith("Supplied class must not be a notification (")); + assertEquals("interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test" + + ".bi.ba.notification.rev150205.OutOfPixieDustNotification is not a valid data tree child of " + + "SchemaRootCodecContext [interface org.opendaylight.yangtools.yang.binding.DataRoot]", ex.getMessage()); } @Test