YANGTOOLS-706: Refactor YangInferencePipeline
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / AugmentProcessTest.java
index 8d7f688e96eb7bc6fe14d86f763627d31a6b25b2..a75a500479c4603518b28ada6c6c69901338cbb5 100644 (file)
@@ -27,10 +27,10 @@ import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
 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.StatementStreamSource;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.YangInferencePipeline;
 
 public class AugmentProcessTest {
 
@@ -86,7 +86,7 @@ public class AugmentProcessTest {
 
     @Test
     public void multipleAugmentsAndMultipleModulesTest() throws ReactorException {
-        SchemaContext result = YangInferencePipeline.RFC6020_REACTOR.newBuild()
+        SchemaContext result = DefaultReactors.defaultReactor().newBuild()
                 .addSources(MULTIPLE_AUGMENT_ROOT, MULTIPLE_AUGMENT_IMPORTED, MULTIPLE_AUGMENT_SUBMODULE)
                 .buildEffective();
         assertNotNull(result);
@@ -94,7 +94,7 @@ public class AugmentProcessTest {
 
     @Test
     public void multipleAugmentTest() throws ReactorException {
-        SchemaContext result = YangInferencePipeline.RFC6020_REACTOR.newBuild()
+        SchemaContext result = DefaultReactors.defaultReactor().newBuild()
                 .addSource(MULTIPLE_AUGMENT)
                 .buildEffective();
         assertNotNull(result);
@@ -102,7 +102,7 @@ public class AugmentProcessTest {
 
     @Test(expected = SomeModifiersUnresolvedException.class)
     public void multipleAugmentIncorrectPathTest() throws  ReactorException {
-        SchemaContext result = YangInferencePipeline.RFC6020_REACTOR.newBuild()
+        SchemaContext result = DefaultReactors.defaultReactor().newBuild()
                 .addSource(MULTIPLE_AUGMENT_INCORRECT)
                 .buildEffective();
         assertNull(result);
@@ -110,7 +110,7 @@ public class AugmentProcessTest {
 
     @Test(expected = SomeModifiersUnresolvedException.class)
     public void multipleAugmentIncorrectPathAndGrpTest() throws  ReactorException {
-        SchemaContext result = YangInferencePipeline.RFC6020_REACTOR.newBuild()
+        SchemaContext result = DefaultReactors.defaultReactor().newBuild()
                 .addSource(MULTIPLE_AUGMENT_INCORRECT2)
                 .buildEffective();
         assertNull(result);
@@ -118,7 +118,7 @@ public class AugmentProcessTest {
 
     @Test
     public void readAndParseYangFileTest() throws ReactorException {
-        final SchemaContext root = YangInferencePipeline.RFC6020_REACTOR.newBuild()
+        final SchemaContext root = DefaultReactors.defaultReactor().newBuild()
                 .addSources(AUGMENTED, ROOT)
                 .buildEffective();
         assertNotNull(root);