Bug 8307: Add the option for activating deviation statements
[yangtools.git] / yang / yang-system-test / src / main / java / org / opendaylight / yangtools / yang / parser / system / test / SystemTestUtils.java
index a3d3d656041cddeafc28736306f30f1b42829a93..5b1e3b40388bfd871319dcce6a796693276d2b48 100644 (file)
@@ -70,11 +70,14 @@ class SystemTestUtils {
             final StatementStreamSource[] libSources, final Set<QName> supportedFeatures) throws ReactorException {
         Preconditions.checkArgument(testSources != null && testSources.length > 0, "No yang sources");
 
-        final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR
-                .newBuild(supportedFeatures);
+        final CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild();
         reactor.addSources(testSources);
         reactor.addLibSources(libSources);
 
+        if (supportedFeatures != null) {
+            reactor.setSupportedFeatures(supportedFeatures);
+        }
+
         return reactor.buildEffective();
     }