Class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector>

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.converters.AbstractCloudEventsConverterTest<T>
All Implemented Interfaces:
Testing

public abstract class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector> extends AbstractConnectorTest
A unified test of all CloudEventsConverter behavior which all connectors should extend.
Author:
Roman Kudryashov
  • Field Details

    • outboxEventRouter

      protected EventRouter<org.apache.kafka.connect.source.SourceRecord> outboxEventRouter
    • headerFrom

      protected org.apache.kafka.connect.transforms.HeaderFrom<org.apache.kafka.connect.source.SourceRecord> headerFrom
  • Constructor Details

    • AbstractCloudEventsConverterTest

      public AbstractCloudEventsConverterTest()
  • Method Details

    • getConnectorClass

      protected abstract Class<T> getConnectorClass()
    • getConnectorName

      protected abstract String getConnectorName()
    • getServerName

      protected abstract String getServerName()
    • databaseConnection

      protected abstract JdbcConnection databaseConnection()
    • getConfigurationBuilder

      protected abstract Configuration.Builder getConfigurationBuilder()
    • topicName

      protected abstract String topicName()
    • tableName

      protected abstract String tableName()
    • createTable

      protected abstract void createTable() throws Exception
      Throws:
      Exception
    • createInsert

      protected abstract String createInsert(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional)
    • waitForStreamingStarted

      protected abstract void waitForStreamingStarted() throws InterruptedException
      Throws:
      InterruptedException
    • beforeEach

      public void beforeEach() throws Exception
      Throws:
      Exception
    • afterEach

      public void afterEach() throws Exception
      Throws:
      Exception
    • shouldConvertToCloudEventsInJsonWithMetadataInHeadersAfterOutboxEventRouter

      @FixFor("DBZ-3642") public void shouldConvertToCloudEventsInJsonWithMetadataInHeadersAfterOutboxEventRouter() throws Exception
      Throws:
      Exception
    • startConnector

      private void startConnector() throws Exception
      Throws:
      Exception