Fix submodule resource resolution 86/96286/5
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 20 May 2021 10:25:37 +0000 (12:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 20 May 2021 15:17:39 +0000 (17:17 +0200)
commit18ac80f3b2ff56bc734d236ba38d9cd14c5f06d7
tree9e051aea146d58cea9c641d757b2b1b7efd7b0fb
parentc351d993f547ed163799706f084071c5533caf89
Fix submodule resource resolution

Initial integration with yangtools-6.0.0 has changed the resource
resolution logic. Unfortunately the lambda instroduced in
Ifa9780fbdfb411b4613df0ee18407d85e81bd517 incorrectly passed 'module'
and not the requested entity to the resolver -- leading to all
submodules to open their module's resource instead.

Fix the lambda and also add proper asserts to check resources are being
open correctly.

JIRA: MDSAL-663
Change-Id: I293f20c15426490a97bb70b4303f0c7b23114c82
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/maven-sal-api-gen-plugin/src/main/java/org/opendaylight/mdsal/binding/maven/api/gen/plugin/CodeGeneratorImpl.java
binding/maven-sal-api-gen-plugin/src/test/java/org/opendaylight/mdsal/binding/yang/unified/doc/generator/maven/YangModuleInfoCompilationTest.java