Bug 6491: Some imports are not exposed in Module.getImports 29/47129/5
authorFilip Gregor <fgregor@cisco.com>
Wed, 19 Oct 2016 13:57:33 +0000 (15:57 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 21 Oct 2016 08:41:27 +0000 (08:41 +0000)
commita9aa900b8c5d1dbe16011a0c6c0f00cbb2ec105e
treea0714582501fc15355d76a184251e1736cbc74bf
parent097a1cc73aa3ffbf1898b38cba4f6c66956a4c3b
Bug 6491: Some imports are not exposed in Module.getImports

in case of no revision in module and imported module, method
getImports returns empty Set.
added tests, fixed Set with imports in AbstractEffectiveModule

Change-Id: Ie23196d9cbcca98266580d11a85d66c06ac8561c
Signed-off-by: Filip Gregor <fgregor@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/AbstractEffectiveModule.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug6491Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/importedModuleRevisionOnly/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/importedModuleRevisionOnly/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/moduleRevisionOnly/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/moduleRevisionOnly/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/withRevision/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/withRevision/foo.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/withoutRevision/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6491/withoutRevision/foo.yang [new file with mode: 0644]