X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FIfFeatureResolutionTest.java;h=49b3cf6ee107075ebba56a8ce19430771b9ffe48;hb=5079ec96bfeeb7a6ff66e71a114033c7d6c5c7a3;hp=ea7983c08d336916f8b26dcf07c3b95eeb57a9f9;hpb=4f1692c802228d396f60fa2374646024781c1c12;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java index ea7983c08d..49b3cf6ee1 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java @@ -14,7 +14,6 @@ import static org.junit.Assert.assertNull; import static org.opendaylight.yangtools.yang.stmt.StmtTestUtils.sourceForResource; import com.google.common.collect.ImmutableSet; -import java.util.Optional; import java.util.Set; import org.junit.Test; import org.opendaylight.yangtools.yang.common.QName; @@ -41,9 +40,9 @@ public class IfFeatureResolutionTest { QName.create("foo-namespace", "1970-01-01", "test-feature-3"), QName.create("bar-namespace", "1970-01-01", "imp-feature")); - final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild( - Optional.of(supportedFeatures)); + final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild(); reactor.addSources(FOO_MODULE, BAR_MODULE); + reactor.setSupportedFeatures(supportedFeatures); final SchemaContext schemaContext = reactor.buildEffective(); assertNotNull(schemaContext); @@ -275,9 +274,9 @@ public class IfFeatureResolutionTest { @Test public void testNoFeaturesSupported() throws ReactorException { - final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild( - Optional.of(ImmutableSet.of())); + final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild(); reactor.addSources(FOO_MODULE, BAR_MODULE); + reactor.setSupportedFeatures(ImmutableSet.of()); final SchemaContext schemaContext = reactor.buildEffective(); assertNotNull(schemaContext);