Split out YangIRSchemaSource
[yangtools.git] / parser / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / repo / AbstractSchemaRepositoryTest.java
index bf6497a3672cbd6a74dbd9915174940fd88dff74..2e3cf45ef575df57356b9662c9f8f63f560441f8 100644 (file)
@@ -20,9 +20,9 @@ import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactoryConfiguration;
+import org.opendaylight.yangtools.yang.model.repo.api.YangIRSchemaSource;
 import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
 import org.opendaylight.yangtools.yang.parser.api.YangSyntaxErrorException;
-import org.opendaylight.yangtools.yang.parser.rfc7950.repo.IRSchemaSource;
 import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToIRTransformer;
 
 public abstract class AbstractSchemaRepositoryTest {
@@ -61,13 +61,13 @@ public abstract class AbstractSchemaRepositoryTest {
             .createEffectiveModelContext(requiredSources);
     }
 
-    private static SettableSchemaProvider<IRSchemaSource> assertYangTextResource(final String resourceName) {
-        final IRSchemaSource yangSource;
+    private static SettableSchemaProvider<YangIRSchemaSource> assertYangTextResource(final String resourceName) {
+        final YangIRSchemaSource yangSource;
         try {
             yangSource = TextToIRTransformer.transformText(YangTextSchemaSource.forResource(resourceName));
         } catch (YangSyntaxErrorException | IOException e) {
             throw new AssertionError("Failed to parse " + resourceName, e);
         }
-        return SettableSchemaProvider.createImmediate(yangSource, IRSchemaSource.class);
+        return SettableSchemaProvider.createImmediate(yangSource, YangIRSchemaSource.class);
     }
 }