Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 8307: Add the option for activating deviation statements
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
test
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
stmt
/
IfFeatureResolutionTest.java
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 ea7983c08d336916f8b26dcf07c3b95eeb57a9f9..49b3cf6ee107075ebba56a8ce19430771b9ffe48 100644
(file)
--- 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 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;
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"));
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.addSources(FOO_MODULE, BAR_MODULE);
+ reactor.setSupportedFeatures(supportedFeatures);
final SchemaContext schemaContext = reactor.buildEffective();
assertNotNull(schemaContext);
final SchemaContext schemaContext = reactor.buildEffective();
assertNotNull(schemaContext);
@@
-275,9
+274,9
@@
public class IfFeatureResolutionTest {
@Test
public void testNoFeaturesSupported() throws ReactorException {
@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.addSources(FOO_MODULE, BAR_MODULE);
+ reactor.setSupportedFeatures(ImmutableSet.of());
final SchemaContext schemaContext = reactor.buildEffective();
assertNotNull(schemaContext);
final SchemaContext schemaContext = reactor.buildEffective();
assertNotNull(schemaContext);