Promote SchemaSourceRepresentation
[yangtools.git] / parser / rfc8040-parser-support / src / test / java / org / opendaylight / yangtools / rfc8040 / parser / AbstractYangDataTest.java
index 705dd41855122ef7cca1eefc1af73a5b67e63924..3816657d314d14862be882344bfb698e1bb9eb85 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.yangtools.rfc8040.parser;
 import java.io.IOException;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
-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.api.YangSyntaxErrorException;
 import org.opendaylight.yangtools.yang.parser.rfc7950.reactor.RFC7950Reactors;
@@ -42,7 +42,7 @@ abstract class AbstractYangDataTest {
     static StatementStreamSource sourceForResource(final String resourceName) {
         try {
             return YangStatementStreamSource.create(
-                YangTextSchemaSource.forResource(AbstractYangDataTest.class, resourceName));
+                YangTextSource.forResource(AbstractYangDataTest.class, resourceName));
         } catch (IOException | YangSyntaxErrorException e) {
             throw new IllegalArgumentException("Failed to create source", e);
         }