Enrich YangParserTestUtils with parseYang(String) 41/105541/7
authormatus.matok <matus.matok@pantheon.tech>
Thu, 20 Apr 2023 10:13:56 +0000 (12:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 12 May 2023 17:17:02 +0000 (19:17 +0200)
commita0e551c041c426eecd6c6ee6456abe3fa6922a6f
treebc2f5448617173f6af3ceb4e65834f3fa9d2b824
parent9271a35377ab3b41ee3ae1a32935494d32917e96
Enrich YangParserTestUtils with parseYang(String)

Added a new static method parseYang() to YangParserTestUtils which allows for
parsing a yang file directly from s string input. This allows for higher
flexibility as we do not need to deal with resource accessibility across
modules. Additionally, it is sometimes more convenient to prefer this new form
of input rather than the old one.

JIRA: YANGTOOLS-1483
Change-Id: I4865b73ba8770669a54dd5be167b2ca2d63f3585
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-test-util/pom.xml
parser/yang-test-util/src/main/java/org/opendaylight/yangtools/yang/test/util/LiteralYangTextSchemaSource.java [new file with mode: 0644]
parser/yang-test-util/src/main/java/org/opendaylight/yangtools/yang/test/util/YangParserTestUtils.java
parser/yang-test-util/src/test/java/org/opendaylight/yangtools/yang/test/util/YT1483Test.java [new file with mode: 0644]
parser/yang-test-util/src/test/resources/root-conflict.yang [new file with mode: 0644]