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=f6832e463a92996825226316bff2037bd2bd6626;hb=e45892a083acd271d729721e07513be6fb97c3d5;hp=c4ee5d771eaa644fd4d187f7b7519742c5200b2d;hpb=6071a13cdd982f42b4ffb9a9ad67380a7abe146e;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 c4ee5d771e..f6832e463a 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 @@ -24,10 +24,9 @@ import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode; import org.opendaylight.yangtools.yang.model.api.Module; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactory; -import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceFilter; import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource; -import org.opendaylight.yangtools.yang.parser.util.ASTSchemaSource; -import org.opendaylight.yangtools.yang.parser.util.TextToASTTransformer; +import org.opendaylight.yangtools.yang.parser.rfc7950.repo.ASTSchemaSource; +import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToASTTransformer; public class SharedSchemaRepositoryWithFeaturesTest { @@ -38,14 +37,12 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource - ("/if-feature-resolution-test/shared-schema-repository/foobar.yang"); + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); - final SchemaContextFactory fact = sharedSchemaRepository - .createSchemaContextFactory(SchemaSourceFilter.ALWAYS_ACCEPT); - + final SchemaContextFactory fact = sharedSchemaRepository.createSchemaContextFactory(); final ListenableFuture testSchemaContextFuture = fact.createSchemaContext(ImmutableList.of(foobar.getId()), supportedFeatures); assertTrue(testSchemaContextFuture.isDone()); @@ -79,14 +76,12 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource - ("/if-feature-resolution-test/shared-schema-repository/foobar.yang"); + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); - final SchemaContextFactory fact = sharedSchemaRepository - .createSchemaContextFactory(SchemaSourceFilter.ALWAYS_ACCEPT); - + final SchemaContextFactory fact = sharedSchemaRepository.createSchemaContextFactory(); final ListenableFuture testSchemaContextFuture = fact.createSchemaContext(ImmutableList.of(foobar.getId())); assertTrue(testSchemaContextFuture.isDone()); @@ -125,14 +120,12 @@ public class SharedSchemaRepositoryWithFeaturesTest { final SharedSchemaRepository sharedSchemaRepository = new SharedSchemaRepository( "shared-schema-repo-with-features-test"); - final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource - ("/if-feature-resolution-test/shared-schema-repository/foobar.yang"); + final SettableSchemaProvider foobar = getImmediateYangSourceProviderFromResource( + "/if-feature-resolution-test/shared-schema-repository/foobar.yang"); foobar.register(sharedSchemaRepository); foobar.setResult(); - final SchemaContextFactory fact = sharedSchemaRepository - .createSchemaContextFactory(SchemaSourceFilter.ALWAYS_ACCEPT); - + final SchemaContextFactory fact = sharedSchemaRepository.createSchemaContextFactory(); final ListenableFuture testSchemaContextFuture = fact.createSchemaContext(ImmutableList.of(foobar.getId()), supportedFeatures); assertTrue(testSchemaContextFuture.isDone());