Migrated all YANG testfiles counting 50 lines or less.
JIRA: YANGTOOLS-1506
Change-Id: I2cb5778ccdc7edc1ae7eece1a79c716928a0655c
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
@BeforeClass
public static void beforeClass() {
- CONTEXT = YangParserTestUtils.parseYangResource("/foo.yang");
+ CONTEXT = YangParserTestUtils.parseYang("""
+ module foo {
+ namespace foo;
+ prefix foo;
+ container foo {
+ leaf bar {
+ type string;
+ }
+ }
+ container bar {
+ presence "is explicit";
+ leaf baz {
+ type string;
+ }
+ }
+ }""");
}
@Before
+++ /dev/null
-module foo {
- namespace foo;
- prefix foo;
-
- container foo {
- leaf bar {
- type string;
- }
- }
-
- container bar {
- presence "is explicit";
-
- leaf baz {
- type string;
- }
- }
-}