Class SqlServerConnectionIT

java.lang.Object
io.debezium.connector.sqlserver.SqlServerConnectionIT

public class SqlServerConnectionIT extends Object
Integration test for SqlServerConnection
Author:
Horia Chiorean (hchiorea@redhat.com)
  • Field Details

    • databaseZoneOffset

      private ZoneOffset databaseZoneOffset
  • Constructor Details

    • SqlServerConnectionIT

      public SqlServerConnectionIT()
  • Method Details

    • before

      public void before() throws SQLException
      Throws:
      SQLException
    • getDatabaseZoneOffset

      private ZoneOffset getDatabaseZoneOffset() throws SQLException
      Throws:
      SQLException
    • shouldEnableCdcForDatabase

      public void shouldEnableCdcForDatabase() throws Exception
      Throws:
      Exception
    • shouldEnableCdcWithWrapperFunctionsForTable

      public void shouldEnableCdcWithWrapperFunctionsForTable() throws Exception
      Throws:
      Exception
    • shouldProperlyGetDefaultColumnValues

      @FixFor("DBZ-1491") public void shouldProperlyGetDefaultColumnValues() throws Exception
      Throws:
      Exception
    • shouldProperlyGetDefaultColumnNullValues

      @FixFor("DBZ-2698") public void shouldProperlyGetDefaultColumnNullValues() throws Exception
      Throws:
      Exception
    • toMillis

      private long toMillis(OffsetDateTime datetime)
    • toMicros

      private long toMicros(OffsetDateTime datetime)
    • toNanos

      private long toNanos(OffsetDateTime datetime)
    • assertColumnHasNotDefaultValue

      private void assertColumnHasNotDefaultValue(Table table, String columnName)
    • assertColumnHasDefaultValue

      private void assertColumnHasDefaultValue(Table table, String columnName, Object expectedValue, TableSchemaBuilder tableSchemaBuilder)