Promote SchemaSourceRepresentation
[yangtools.git] / parser / rfc8528-parser-support / src / test / java / org / opendaylight / yangtools / rfc8528 / parser / MountPointTest.java
index 0b327953bcc34202d1e070731c005e7b64321136..601731c0d925eb268cdb85198662537eb93cf151 100644 (file)
@@ -17,7 +17,7 @@ import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.common.XMLNamespace;
 import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
-import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
+import org.opendaylight.yangtools.yang.model.spi.source.YangTextSource;
 import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
 import org.opendaylight.yangtools.yang.parser.rfc7950.reactor.RFC7950Reactors;
 import org.opendaylight.yangtools.yang.parser.rfc7950.repo.YangStatementStreamSource;
@@ -41,16 +41,15 @@ class MountPointTest {
         final var context = reactor.newBuild()
             .addLibSources(
                 YangStatementStreamSource.create(
-                    YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-inet-types@2013-07-15.yang")),
+                    YangTextSource.forResource(MountPointTest.class, "/ietf-inet-types@2013-07-15.yang")),
                 YangStatementStreamSource.create(
-                    YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-yang-schema-mount@2019-01-14.yang")),
+                    YangTextSource.forResource(MountPointTest.class, "/ietf-yang-schema-mount@2019-01-14.yang")),
                 YangStatementStreamSource.create(
-                    YangTextSchemaSource.forResource(MountPointTest.class, "/ietf-yang-types@2013-07-15.yang")))
+                    YangTextSource.forResource(MountPointTest.class, "/ietf-yang-types@2013-07-15.yang")))
             .addSources(
+                YangStatementStreamSource.create(YangTextSource.forResource(MountPointTest.class, "/example-grp.yang")),
                 YangStatementStreamSource.create(
-                    YangTextSchemaSource.forResource(MountPointTest.class, "/example-grp.yang")),
-                YangStatementStreamSource.create(
-                    YangTextSchemaSource.forResource(MountPointTest.class, "/example-uses.yang")))
+                    YangTextSource.forResource(MountPointTest.class, "/example-uses.yang")))
             .buildEffective();
 
         assertEquals(5, context.getModules().size());