Class LogFileCollectorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.logminer.LogFileCollectorIT
All Implemented Interfaces:
Testing

public class LogFileCollectorIT extends AbstractConnectorTest
Integration tests for the LogFileCollector implementation.
Author:
Chris Cranford
  • Field Details

    • skipAdapterRule

      public final org.junit.rules.TestRule skipAdapterRule
    • connection

      private static io.debezium.connector.oracle.OracleConnection connection
  • Constructor Details

    • LogFileCollectorIT

      public LogFileCollectorIT()
  • Method Details

    • beforeSuperClass

      public static void beforeSuperClass() throws SQLException
      Throws:
      SQLException
    • closeConnection

      public static void closeConnection() throws SQLException
      Throws:
      SQLException
    • before

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

      @FixFor("DBZ-3256") public void shouldAddCorrectLogFiles() throws Exception
      Throws:
      Exception
    • shouldOnlyReturnArchiveLogs

      @FixFor("DBZ-3561") public void shouldOnlyReturnArchiveLogs() throws Exception
      Throws:
      Exception
    • shouldGetArchiveLogsWithDestinationSpecified

      @FixFor("DBZ-3661") public void shouldGetArchiveLogsWithDestinationSpecified() throws Exception
      Throws:
      Exception
    • getLogFileCollector

      private io.debezium.connector.oracle.logminer.LogFileCollector getLogFileCollector(Duration logRetention, boolean archiveLogsOnly, String destinationName)
    • assertLogFilesHaveNoGaps

      private void assertLogFilesHaveNoGaps(int instances, List<io.debezium.connector.oracle.logminer.LogFile> logFiles, List<io.debezium.connector.oracle.Scn> scnList)
    • getOldestArchivedScn

      private io.debezium.connector.oracle.Scn getOldestArchivedScn(List<io.debezium.connector.oracle.Scn> oneDayArchivedNextScn)
    • getOneDayArchivedLogNextScn

      private List<io.debezium.connector.oracle.Scn> getOneDayArchivedLogNextScn(io.debezium.connector.oracle.OracleConnection conn) throws SQLException
      Throws:
      SQLException
    • getNumberOfInstances

      private static int getNumberOfInstances(io.debezium.connector.oracle.OracleConnection connection) throws SQLException
      Throws:
      SQLException