commit | 1edde62ac08f67ecb4d6d3ab3b055f1a913f8cf3 | [log] [tgz] |
---|---|---|
author | Bharat saraswal <bharat.saraswal@huawei.com> | Tue Sep 06 10:18:04 2016 +0530 |
committer | Bharat saraswal <bharat.saraswal@huawei.com> | Tue Sep 06 12:28:31 2016 +0530 |
tree | f1ebab8633aa48a4c3931dc023909874bb7f487f | |
parent | 230ab52f60f3bfd6087f5dc2f77650b3fd1e1577 [diff] [blame] |
[ONOS-5178] Defect fix :No get/set for root node in generated service Change-Id: I9d90068e4cdd3d35a9ee71fd1f00c4a635b191b7
diff --git a/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/SubModuleListenerTest.java b/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/SubModuleListenerTest.java index 6a53cbe..3210948 100644 --- a/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/SubModuleListenerTest.java +++ b/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/SubModuleListenerTest.java
@@ -26,7 +26,6 @@ import java.io.IOException; import static org.hamcrest.core.Is.is; -import static org.hamcrest.core.IsNull.notNullValue; import static org.junit.Assert.assertThat; /** @@ -109,7 +108,7 @@ // Checks for the version value in data model tree. assertThat(yangNode.getBelongsTo().getPrefix(), is("On1")); //Checks the revision with current date is created for empty revision statement. - assertThat(((YangSubModule) node).getRevision().getRevDate(), notNullValue()); + assertThat(true, is(node.getRevision() == null)); } /**