Class SchemaTestUtils

java.lang.Object
org.apache.flink.connector.testutils.formats.SchemaTestUtils

public class SchemaTestUtils extends Object
Test utilities for schemas.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    open(org.apache.flink.api.common.serialization.DeserializationSchema<?> schema)
    Opens the given schema with a mock initialization context.
    static void
    open(org.apache.flink.api.common.serialization.SerializationSchema<?> schema)
    Opens the given schema with a mock initialization context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SchemaTestUtils

      public SchemaTestUtils()
  • Method Details

    • open

      public static void open(org.apache.flink.api.common.serialization.SerializationSchema<?> schema)
      Opens the given schema with a mock initialization context.
      Parameters:
      schema - to open
      Throws:
      RuntimeException - if the schema throws an exception
    • open

      public static void open(org.apache.flink.api.common.serialization.DeserializationSchema<?> schema)
      Opens the given schema with a mock initialization context.
      Parameters:
      schema - to open
      Throws:
      RuntimeException - if the schema throws an exception