import org.opendaylight.yangtools.yang.model.api.IdentitySchemaNode;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.parser.impl.DefaultReactors;
import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
import org.opendaylight.yangtools.yang.parser.spi.meta.SomeModifiersUnresolvedException;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
import org.opendaylight.yangtools.yang.parser.spi.source.StatementStreamSource;
import org.opendaylight.yangtools.yang.parser.stmt.reactor.CrossSourceStatementReactor;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.YangInferencePipeline;
public class EffectiveIdentityTest {
"/stmt-test/identity/cyclic-identity-test.yang");
@Test(expected = SomeModifiersUnresolvedException.class)
- public void cyclicefineTest() throws SourceException, ReactorException,
- URISyntaxException {
+ public void cyclicefineTest() throws SourceException, ReactorException, URISyntaxException {
- CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR
- .newBuild();
- reactor.addSources(CYCLIC_IDENTITY_TEST);
+ CrossSourceStatementReactor.BuildAction reactor = DefaultReactors.defaultReactor().newBuild()
+ .addSources(CYCLIC_IDENTITY_TEST);
try {
reactor.buildEffective();
} catch (SomeModifiersUnresolvedException e) {
@Test
public void identityTest() throws SourceException, ReactorException,
URISyntaxException {
-
- CrossSourceStatementReactor.BuildAction reactor = YangInferencePipeline.RFC6020_REACTOR.newBuild();
- reactor.addSources(IDENTITY_TEST);
- SchemaContext result = reactor.buildEffective();
+ SchemaContext result = DefaultReactors.defaultReactor().newBuild()
+ .addSources(IDENTITY_TEST)
+ .buildEffective();
assertNotNull(result);