commit | 0cb696d80f7eadbf58fd532e44d6608d82ac559f | [log] [tgz] |
---|---|---|
author | Gaurav Agrawal <gaurav.agrawal@huawei.com> | Fri Mar 11 00:30:12 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Mar 21 19:21:51 2016 +0000 |
tree | 2263f5e0e67de02053bd6361f4c4ad0cd209a5cf | |
parent | e68bb1912b8d1dd9ae8b96057a57ab84135236bb [diff] [blame] |
YANG: Line number and character position addition for cardinality failure + Increase readability of Error message and function name Change-Id: I467a536a9d2a6cbb29873491fdb0a91f211deefd
diff --git a/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnitsListenerTest.java b/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnitsListenerTest.java index 71a3042..dc5ff59 100644 --- a/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnitsListenerTest.java +++ b/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnitsListenerTest.java
@@ -157,7 +157,7 @@ @Test public void processUnitsStatementCardinality() throws IOException, ParserException { thrown.expect(ParserException.class); - thrown.expectMessage("YANG file error: Invalid cardinality of units in leaf \"invalid-interval\"."); + thrown.expectMessage("YANG file error: \"units\" is defined more than once in \"leaf invalid-interval\"."); YangNode node = manager.getDataModel("src/test/resources/UnitsStatementCardinality.yang"); }