X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Frepo%2FSharedSchemaRepositoryWithFeaturesTest.java;h=41473ea2130ad913e6ce2132e4761060e99350a7;hb=bb60da5fe2d1928defb46ed92b290cfff93dcd81;hp=df0c09686bcccb123e82b606d4ef305f4a2f5cf1;hpb=19efe56f8f20f5692a100e765a581fbc8f0b4aca;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaRepositoryWithFeaturesTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaRepositoryWithFeaturesTest.java index df0c09686b..41473ea213 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaRepositoryWithFeaturesTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/repo/SharedSchemaRepositoryWithFeaturesTest.java @@ -25,8 +25,8 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactory; import org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactoryConfiguration; import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource; -import org.opendaylight.yangtools.yang.parser.rfc7950.repo.ASTSchemaSource; -import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToASTTransformer; +import org.opendaylight.yangtools.yang.parser.rfc7950.ir.IRSchemaSource; +import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToIRTransformer; public class SharedSchemaRepositoryWithFeaturesTest { @@ -37,7 +37,7 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); @@ -60,7 +60,7 @@ public class SharedSchemaRepositoryWithFeaturesTest { QName.create(module.getQNameModule(), "test-leaf-a")); assertNotNull(testLeafA); - final ContainerSchemaNode testContainerB = (ContainerSchemaNode) module.getDataChildByName( + final ContainerSchemaNode testContainerB = (ContainerSchemaNode) module.dataChildByName( QName.create(module.getQNameModule(), "test-container-b")); assertNull(testContainerB); @@ -77,7 +77,7 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); @@ -119,7 +119,7 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); @@ -143,11 +143,11 @@ public class SharedSchemaRepositoryWithFeaturesTest { assertNotNull(testLeafC); } - private static SettableSchemaProvider getImmediateYangSourceProviderFromResource( + private static SettableSchemaProvider getImmediateYangSourceProviderFromResource( final String resourceName) throws Exception { final YangTextSchemaSource yangSource = YangTextSchemaSource.forResource(resourceName); - return SettableSchemaProvider.createImmediate(TextToASTTransformer.transformText(yangSource), - ASTSchemaSource.class); + return SettableSchemaProvider.createImmediate(TextToIRTransformer.transformText(yangSource), + IRSchemaSource.class); } private static void assertSchemaContext(final SchemaContext schemaContext, final int moduleSize) {