BUG-7954: identify source of the offending statement
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / YangParserNegativeTest.java
index 2b1143a0b74c0ca38d252702b82db1d0f4835a4a..45c74ba6b8b036c1ca74d5cf83c35250d1efeaaf 100644 (file)
@@ -151,7 +151,7 @@ public class YangParserNegativeTest {
         } catch (final ReactorException e) {
             final String expected = "Error in module 'container': cannot add '(urn:simple.container" +
                     ".demo?revision=1970-01-01)foo'. Node name collision: '(urn:simple.container" +
-                    ".demo?revision=1970-01-01)foo' already declared.";
+                    ".demo?revision=1970-01-01)foo' already declared";
             assertTrue(e.getCause().getMessage().contains(expected));
         }
     }
@@ -167,7 +167,7 @@ public class YangParserNegativeTest {
         } catch (final ReactorException e) {
             final String expected = "Error in module 'container-list': cannot add '(urn:simple.container" +
                     ".demo?revision=1970-01-01)foo'. Node name collision: '(urn:simple.container" +
-                    ".demo?revision=1970-01-01)foo' already declared.";
+                    ".demo?revision=1970-01-01)foo' already declared";
             assertTrue(e.getCause().getMessage().contains(expected));
         }
     }
@@ -183,7 +183,7 @@ public class YangParserNegativeTest {
         } catch (final ReactorException e) {
             final String expected = "Error in module 'container-leaf': cannot add '(urn:simple.container" +
                     ".demo?revision=1970-01-01)foo'. Node name collision: '(urn:simple.container" +
-                    ".demo?revision=1970-01-01)foo' already declared.";
+                    ".demo?revision=1970-01-01)foo' already declared";
             assertTrue(e.getCause().getMessage().contains(expected));
         }
     }
@@ -254,4 +254,4 @@ public class YangParserNegativeTest {
         }
     }
 
-}
\ No newline at end of file
+}