Test/Reproduce behavior described in MDSAL-713 88/106388/8
authorŠimon Ukuš <simon.ukus@pantheon.tech>
Tue, 6 Jun 2023 08:00:46 +0000 (10:00 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 8 Feb 2025 19:09:04 +0000 (19:09 +0000)
commit1be0f77dabb617aebcea3db8a68a7d262c47600f
tree4ca33147a85dd9a94152f546cc769652afebf5fc
parente0ded325494596f41984d19ee837ba46df44db74
Test/Reproduce behavior described in MDSAL-713

A (possibly) faulty behavior was found during the work on MDSAL-713
described in the JIRA issue. The problem is in the inconsistency of
statement reporting as being introduced by augmentation.
While substatements of DeclaredCaseEffectiveStatement,
that was introduced by augmentation, are reported as being introduced
by augmentation, the substatements of UndeclaredCaseEffectiveStatemet,
which was introduced by augmentation, are NOT reported that way.

This change introduces a test that aims to reproduce such behavior.

JIRA: MDSAL-713
Change-Id: I97f7e5aad613c2ee11f60935af9d5db5f352fdea
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/Mdsal713IsAugmentingTest.java [new file with mode: 0644]
parser/yang-parser-rfc7950/src/test/resources/augment-test/augment-choice-shorthand-case/augment-base.yang [new file with mode: 0644]
parser/yang-parser-rfc7950/src/test/resources/augment-test/augment-choice-shorthand-case/base.yang [new file with mode: 0644]