Class TestHelper

java.lang.Object
io.debezium.connector.jdbc.junit.TestHelper

public class TestHelper extends Object
Author:
Chris Cranford
  • Constructor Details

    • TestHelper

      private TestHelper()
  • Method Details

    • assertTable

      public static org.assertj.db.api.TableAssert assertTable(DataSource dataSource, String tableName)
    • assertTable

      public static org.assertj.db.api.TableAssert assertTable(org.assertj.db.type.Source source, String tableName)
    • getRootCause

      public static Throwable getRootCause(Throwable t)
      Get the nested root-cause of the exception.
      Parameters:
      t - the exception, should not be null
      Returns:
      the nested root-cause exception
    • getPrimaryKeyColumnNames

      public static List<String> getPrimaryKeyColumnNames(DataSource dataSource, String tableName)