commit | 528ef30d89b7a73e831fd29a481147ce1542d863 | [log] [tgz] |
---|---|---|
author | Vidyashree Rama <vidyashree.rama@huawei.com> | Thu Jun 30 14:31:18 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Jul 13 16:19:30 2016 +0000 |
tree | d5e5ba32f6c204eae192080001ace469fdb7f715 | |
parent | 4570084a51a21a86498d2195810245a0e69e8bbf [diff] [blame] |
[ONOS-4762][ONOS-4601]Grammar for meta data + Union defect fix Change-Id: I8f78127e5b292cca6a79b32d496c2602c9105acd
diff --git a/utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnionListenerTest.java b/utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnionListenerTest.java index 04b3796..1fe7218 100644 --- a/utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnionListenerTest.java +++ b/utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/UnionListenerTest.java
@@ -138,4 +138,12 @@ YangNode node = manager.getDataModel("src/test/resources/UnionWithEmptyType.yang"); } + + /** + * Checks whether type union has atleast one type statement. + */ + @Test (expected = ParserException.class) + public void processUnionWithoutChild() throws IOException, ParserException { + manager.getDataModel("src/test/resources/UnionWithoutChild.yang"); + } }