@BeforeAll
public static void beforeAll() {
- CONTEXT = YangParserTestUtils.parseYangResourceDirectory("/YT1433");
+ CONTEXT = YangParserTestUtils.parseYang("""
+ module foo {
+ namespace foo;
+ prefix foo;
+
+ container foo;
+
+ augment /foo {
+ container bar;
+ }
+
+ augment /foo/bar {
+ container baz;
+ }
+ }""", """
+ module bar {
+ namespace bar;
+ prefix bar;
+
+ choice foo;
+
+ augment /foo {
+ container bar;
+ }
+
+ augment /foo/bar/bar {
+ container baz;
+ }
+ }""");
}
@Test