X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-data-codec-xml%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fdata%2Fcodec%2Fxml%2FStrictParsingModeTest.java;h=070b892464425948e6b0fa240d4744d37b59a60a;hb=0c28880fd3df1ba253161b6b75f63f2d7a6e7c02;hp=fd15f68ba554d06aa0d8efb41c56a2b989767eb4;hpb=02d724c5ef8e51e7981a97f8418e4d6804aafe22;p=yangtools.git diff --git a/yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java b/yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java index fd15f68ba5..070b892464 100644 --- a/yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java +++ b/yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/StrictParsingModeTest.java @@ -8,8 +8,8 @@ package org.opendaylight.yangtools.yang.data.codec.xml; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.InputStream; @@ -78,8 +78,8 @@ public class StrictParsingModeTest { xmlParser.parse(reader); fail("IllegalStateException should have been thrown because of an unknown child node."); } catch (IllegalStateException ex) { - assertTrue(ex.getMessage().contains("Schema for node with name unknown-container-a and namespace " - + "foo doesn't exist.")); + assertEquals("Schema for node with name unknown-container-a and namespace foo doesn't exist at " + + "AbsoluteSchemaPath{path=[(foo)top-level-container]}", ex.getMessage()); } } }