Package io.debezium.connector.sqlserver
Class SqlServerConnectionIT
- java.lang.Object
-
- io.debezium.connector.sqlserver.SqlServerConnectionIT
-
public class SqlServerConnectionIT extends Object
Integration test forSqlServerConnection- Author:
- Horia Chiorean (hchiorea@redhat.com)
-
-
Field Summary
Fields Modifier and Type Field Description private ZoneOffsetdatabaseZoneOffset
-
Constructor Summary
Constructors Constructor Description SqlServerConnectionIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidassertColumnHasDefaultValue(Table table, String columnName, Object expectedValue, TableSchemaBuilder tableSchemaBuilder)private voidassertColumnHasNotDefaultValue(Table table, String columnName)voidbefore()private ZoneOffsetgetDatabaseZoneOffset()voidshouldEnableCdcForDatabase()voidshouldEnableCdcWithWrapperFunctionsForTable()voidshouldProperlyGetDefaultColumnNullValues()voidshouldProperlyGetDefaultColumnValues()private longtoMicros(OffsetDateTime datetime)private longtoMillis(OffsetDateTime datetime)private longtoNanos(OffsetDateTime datetime)
-
-
-
Field Detail
-
databaseZoneOffset
private ZoneOffset databaseZoneOffset
-
-
Method Detail
-
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)
-
-