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 {
@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)));
}