Class TestHelper

java.lang.Object
io.debezium.connector.informix.util.TestHelper

public class TestHelper extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TEST_DATABASE

      public static final String TEST_DATABASE
      See Also:
    • TEST_CONNECTOR

      public static final String TEST_CONNECTOR
      See Also:
    • SCHEMA_HISTORY_PATH

      public static final Path SCHEMA_HISTORY_PATH
    • TYPE_NAME_PARAMETER_KEY

      public static final String TYPE_NAME_PARAMETER_KEY
      Key for schema parameter used to store a source column's type name.
      See Also:
    • TYPE_LENGTH_PARAMETER_KEY

      public static final String TYPE_LENGTH_PARAMETER_KEY
      Key for schema parameter used to store a source column's type length.
      See Also:
    • TYPE_SCALE_PARAMETER_KEY

      public static final String TYPE_SCALE_PARAMETER_KEY
      Key for schema parameter used to store a source column's type scale.
      See Also:
    • STATEMENTS_TABLE_PLACEHOLDER

      private static final String STATEMENTS_TABLE_PLACEHOLDER
      See Also:
    • STATEMENTS_SCHEMA_PLACEHOLDER

      private static final String STATEMENTS_SCHEMA_PLACEHOLDER
      See Also:
    • IS_CDC_ENABLED

      public static final String IS_CDC_ENABLED
      Check if 'testdb' is enable database logging.
      See Also:
  • Constructor Details

    • TestHelper

      public TestHelper()
  • Method Details

    • adminJdbcConfig

      public static io.debezium.jdbc.JdbcConfiguration adminJdbcConfig()
    • defaultJdbcConfig

      public static io.debezium.jdbc.JdbcConfiguration defaultJdbcConfig()
    • defaultConfig

      public static io.debezium.config.Configuration.Builder defaultConfig()
      Returns a default configuration suitable for most test cases. Can be amended/overridden in individual tests as needed.
    • adminConnection

      public static io.debezium.connector.informix.InformixConnection adminConnection()
    • testConnection

      public static io.debezium.connector.informix.InformixConnection testConnection()
    • assertCdcEnabled

      public static void assertCdcEnabled(io.debezium.connector.informix.InformixConnection conn) throws SQLException
      Check if 'testdb''s logging or buf_logging is enabled.
      Throws:
      SQLException