Class OracleDdlParserTest

java.lang.Object
io.debezium.connector.oracle.OracleDdlParserTest

public class OracleDdlParserTest extends Object
This is the test suite for Oracle Antlr parser unit testing
  • Field Details

  • Constructor Details

    • OracleDdlParserTest

      public OracleDdlParserTest()
  • Method Details

    • setUp

      public void setUp()
    • shouldParseCreateAndAlterTable

      public void shouldParseCreateAndAlterTable() throws Exception
      Throws:
      Exception
    • shouldParseCreateTable

      public void shouldParseCreateTable()
      this is original test by Gunnar Morling
    • testParsingMultiStatementTableMetadataResult

      public void testParsingMultiStatementTableMetadataResult() throws Exception
      Throws:
      Exception
    • shouldParseAlterTableAddColumnStatement

      @FixFor("DBZ-4135") public void shouldParseAlterTableAddColumnStatement() throws Exception
      Throws:
      Exception
    • shouldParseAlterTableModifyColumnStatement

      @FixFor("DBZ-4135") public void shouldParseAlterTableModifyColumnStatement() throws Exception
      Throws:
      Exception
    • shouldParseAlterTableDropColumnStatement

      @FixFor("DBZ-4135") public void shouldParseAlterTableDropColumnStatement() throws Exception
      Throws:
      Exception
    • shouldParseNumberAsteriskWithDefaultPrecision

      @FixFor("DBZ-4240") public void shouldParseNumberAsteriskWithDefaultPrecision() throws Exception
      Throws:
      Exception
    • shouldParseAlterTableWithoutDatatypeContextClause

      @FixFor("DBZ-4976") public void shouldParseAlterTableWithoutDatatypeContextClause() throws Exception
      Throws:
      Exception
    • shouldParseCheckConstraint

      @FixFor("DBZ-5390") public void shouldParseCheckConstraint() throws Exception
      Throws:
      Exception
    • getEventTypesFromChanges

      private List<DdlParserListener.EventType> getEventTypesFromChanges(DdlChanges changes)
    • testColumn

      private void testColumn(@NotNull @NotNull Table table, @NotNull @NotNull String name, boolean isOptional, Integer jdbcType, String typeName, Integer length, Integer scale, Boolean hasDefault, Object defaultValue)