Rename YangIRSchemaSource
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / parser / rfc7950 / antlr / IOSupportTest.java
index fd74e9a273e81b5252796ba43d5760847d731481..6e835e43f897a120730767017da202aa7c479ae4 100644 (file)
@@ -18,12 +18,12 @@ import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
 import org.opendaylight.yangtools.yang.ir.IOSupport;
 import org.opendaylight.yangtools.yang.ir.IRStatement;
-import org.opendaylight.yangtools.yang.model.spi.source.YangIRSchemaSource;
+import org.opendaylight.yangtools.yang.model.spi.source.YangIRSource;
 import org.opendaylight.yangtools.yang.parser.rfc7950.repo.TextToIRTransformer;
 import org.opendaylight.yangtools.yang.stmt.TestUtils;
 
 class IOSupportTest {
-    private static YangIRSchemaSource FOO;
+    private static YangIRSource FOO;
 
     @BeforeAll
     static void beforeClass() throws Exception {
@@ -32,13 +32,13 @@ class IOSupportTest {
 
     @Test
     void testSerializedSize() throws IOException {
-        final byte[] bytes = serialize(FOO.rootStatement());
+        final byte[] bytes = serialize(FOO.statement());
         assertEquals(485, bytes.length);
     }
 
     @Test
     void testSerdes() throws IOException {
-        final var orig = FOO.rootStatement();
+        final var orig = FOO.statement();
         assertEquals(orig, deserialize(serialize(orig)));
     }