Package io.debezium.relational
Class TableSchemaBuilderTest
- java.lang.Object
-
- io.debezium.relational.TableSchemaBuilderTest
-
public class TableSchemaBuilderTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.util.SchemaNameAdjusteradjusterprivate static StringAVRO_UNSUPPORTED_NAMEprivate static StringAVRO_UNSUPPORTED_NAME_CONVERTEDprivate io.debezium.relational.Columnc1private io.debezium.relational.Columnc10private io.debezium.relational.Columnc2private io.debezium.relational.Columnc3private io.debezium.relational.Columnc4private io.debezium.relational.Columnc5private io.debezium.relational.Columnc6private io.debezium.relational.Columnc7private io.debezium.relational.Columnc8private io.debezium.relational.Columnc9private io.debezium.relational.CustomConverterRegistrycustomConverterRegistryprivate Object[]dataprivate io.debezium.relational.TableIdidprivate Object[]keyDataprivate Stringprefixprivate io.debezium.relational.TableSchemaschemaprivate io.debezium.relational.Tabletable
-
Constructor Summary
Constructors Constructor Description TableSchemaBuilderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeEach()voidcheckPreconditions()voidcustomKeyMapperShouldMapMultipleTables()voiddefaultKeyMapperShouldOrderKeyColumnsBasedOnPrimaryKeyColumnNamesOrder()voidmapperConvertersShouldLeaveEmptyDatesAsZero()voidshouldBuildCorrectSchemaNames()voidshouldBuildTableSchemaFromTable()voidshouldBuildTableSchemaFromTableWithCustomKey()voidshouldBuildTableSchemaFromTableWithoutPrimaryKey()voidshouldFailToBuildTableSchemaFromNullTable()voidshouldFallbackToIdentyKeyWhenCustomMapperIsNull()voidshouldOverrideIdentityKey()voidshouldSanitizeFieldNamesAndBuildTableSchemaFromTableWithoutPrimaryKey()voidshouldSanitizeFieldNamesAndValidateSerialization()
-
-
-
Field Detail
-
AVRO_UNSUPPORTED_NAME
private static final String AVRO_UNSUPPORTED_NAME
- See Also:
- Constant Field Values
-
AVRO_UNSUPPORTED_NAME_CONVERTED
private static final String AVRO_UNSUPPORTED_NAME_CONVERTED
- See Also:
- Constant Field Values
-
prefix
private final String prefix
- See Also:
- Constant Field Values
-
id
private final io.debezium.relational.TableId id
-
data
private final Object[] data
-
keyData
private final Object[] keyData
-
table
private io.debezium.relational.Table table
-
c1
private io.debezium.relational.Column c1
-
c2
private io.debezium.relational.Column c2
-
c3
private io.debezium.relational.Column c3
-
c4
private io.debezium.relational.Column c4
-
c5
private io.debezium.relational.Column c5
-
c6
private io.debezium.relational.Column c6
-
c7
private io.debezium.relational.Column c7
-
c8
private io.debezium.relational.Column c8
-
c9
private io.debezium.relational.Column c9
-
c10
private io.debezium.relational.Column c10
-
schema
private io.debezium.relational.TableSchema schema
-
adjuster
private io.debezium.util.SchemaNameAdjuster adjuster
-
customConverterRegistry
private final io.debezium.relational.CustomConverterRegistry customConverterRegistry
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
checkPreconditions
public void checkPreconditions()
-
shouldFailToBuildTableSchemaFromNullTable
public void shouldFailToBuildTableSchemaFromNullTable()
-
shouldBuildTableSchemaFromTable
public void shouldBuildTableSchemaFromTable()
-
shouldBuildCorrectSchemaNames
@FixFor("DBZ-1089") public void shouldBuildCorrectSchemaNames()
-
shouldBuildTableSchemaFromTableWithoutPrimaryKey
public void shouldBuildTableSchemaFromTableWithoutPrimaryKey()
-
shouldSanitizeFieldNamesAndBuildTableSchemaFromTableWithoutPrimaryKey
@FixFor("DBZ-1044") public void shouldSanitizeFieldNamesAndBuildTableSchemaFromTableWithoutPrimaryKey()
-
shouldSanitizeFieldNamesAndValidateSerialization
@FixFor({"DBZ-1044","DBZ-2849"}) public void shouldSanitizeFieldNamesAndValidateSerialization()
-
shouldBuildTableSchemaFromTableWithCustomKey
@FixFor("DBZ-1015") public void shouldBuildTableSchemaFromTableWithCustomKey()
-
shouldOverrideIdentityKey
@FixFor("DBZ-1015") public void shouldOverrideIdentityKey()
-
shouldFallbackToIdentyKeyWhenCustomMapperIsNull
@FixFor("DBZ-1015") public void shouldFallbackToIdentyKeyWhenCustomMapperIsNull()
-
customKeyMapperShouldMapMultipleTables
@FixFor("DBZ-1015") public void customKeyMapperShouldMapMultipleTables()
-
defaultKeyMapperShouldOrderKeyColumnsBasedOnPrimaryKeyColumnNamesOrder
@FixFor("DBZ-1507") public void defaultKeyMapperShouldOrderKeyColumnsBasedOnPrimaryKeyColumnNamesOrder()
-
mapperConvertersShouldLeaveEmptyDatesAsZero
@FixFor("DBZ-2682") public void mapperConvertersShouldLeaveEmptyDatesAsZero()
-
-