Package io.debezium.connector.oracle
Class OracleXmlDataTypesIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OracleXmlDataTypesIT
- All Implemented Interfaces:
Testing
Integration tests for XML data type support.
- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.debezium.connector.oracle.OracleConnectionfinal org.junit.rules.TestRuleprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()private static org.apache.kafka.connect.data.Structafter(org.apache.kafka.connect.source.SourceRecord record) private static voidassertFieldIsUnavailablePlaceholder(org.apache.kafka.connect.data.Struct after, String fieldName, Configuration config) private static voidassertXmlFieldIsEqual(org.apache.kafka.connect.data.Struct after, String fieldName, String expected) voidbefore()private static org.apache.kafka.connect.data.Structbefore(org.apache.kafka.connect.source.SourceRecord record) private static StringformatToOracleXml(String data) private Configuration.Buildervoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate static Stringprivate oracle.xdb.XMLTypeMethods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, createEngine, createEngineBuilder, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
XML_DATA
-
XML_DATA2
-
XML_LONG_DATA
-
XML_LONG_DATA2
-
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
connection
private io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
OracleXmlDataTypesIT
public OracleXmlDataTypesIT()
-
-
Method Details
-
before
public void before() -
after
- Throws:
Exception
-
shouldSnapshotTableWithXmlTypeColumnWithSimpleXmlData
@FixFor("DBZ-3605") public void shouldSnapshotTableWithXmlTypeColumnWithSimpleXmlData() throws Exception- Throws:
Exception
-
shouldSnapshotTableWithXmlTypeColumnWithShortXmlData
@FixFor("DBZ-3605") public void shouldSnapshotTableWithXmlTypeColumnWithShortXmlData() throws Exception- Throws:
Exception
-
shouldSnapshotTableWithXmlTypeColumnWithLongXmlData
@FixFor("DBZ-3605") public void shouldSnapshotTableWithXmlTypeColumnWithLongXmlData() throws Exception- Throws:
Exception
-
shouldStreamTableWithXmlTypeColumnWithSimpleXmlData
@FixFor("DBZ-3605") public void shouldStreamTableWithXmlTypeColumnWithSimpleXmlData() throws Exception- Throws:
Exception
-
shouldStreamTableWithXmlTypeColumnWithShortXmlData
@FixFor("DBZ-3605") public void shouldStreamTableWithXmlTypeColumnWithShortXmlData() throws Exception- Throws:
Exception
-
shouldStreamTableWithXmlTypeColumnWithLongXmlData
@FixFor("DBZ-3605") public void shouldStreamTableWithXmlTypeColumnWithLongXmlData() throws Exception- Throws:
Exception
-
shouldStreamTableWithXmlTypeColumnAndOtherNonLobColumns
@FixFor("DBZ-3605") public void shouldStreamTableWithXmlTypeColumnAndOtherNonLobColumns() throws Exception- Throws:
Exception
-
shouldStreamTableWithNoPrimaryKeyWithXmlTypeColumn
@FixFor("DBZ-3605") public void shouldStreamTableWithNoPrimaryKeyWithXmlTypeColumn() throws Exception- Throws:
Exception
-
shouldStreamTableWithXmlTypeColumnAndAnotherLobColumn
@FixFor("DBZ-3605") public void shouldStreamTableWithXmlTypeColumnAndAnotherLobColumn() throws Exception- Throws:
Exception
-
shouldProperlyResolveAddedXmlColumnTypeAndStreamChanges
@FixFor("DBZ-6782") public void shouldProperlyResolveAddedXmlColumnTypeAndStreamChanges() throws Exception- Throws:
Exception
-
getDefaultXmlConfig
-
toXmlType
- Throws:
SQLException
-
assertXmlFieldIsEqual
-
formatToOracleXml
-
topicName
-
before
private static org.apache.kafka.connect.data.Struct before(org.apache.kafka.connect.source.SourceRecord record) -
after
private static org.apache.kafka.connect.data.Struct after(org.apache.kafka.connect.source.SourceRecord record)
-