Class OracleDmlParserTest


  • public class OracleDmlParserTest
    extends Object
    This is the test suite for Oracle Antlr and jsqlparser DML parser unit testing
    • Field Detail

      • ddlParser

        private io.debezium.connector.oracle.antlr.OracleDdlParser ddlParser
      • antlrDmlParser

        private io.debezium.connector.oracle.antlr.OracleDmlParser antlrDmlParser
      • sqlDmlParser

        private io.debezium.connector.oracle.logminer.parser.SimpleDmlParser sqlDmlParser
      • tables

        private Tables tables
      • TABLE_ID

        private static final TableId TABLE_ID
      • CLOB_DATA

        private static String CLOB_DATA
      • BLOB_DATA

        private static byte[] BLOB_DATA
      • skipRule

        public org.junit.rules.TestRule skipRule
    • Constructor Detail

      • OracleDmlParserTest

        public OracleDmlParserTest()
    • Method Detail

      • setUp

        public void setUp()
      • shouldParseAliasUpdate

        public void shouldParseAliasUpdate()
                                    throws Exception
        Throws:
        Exception
      • shouldParseTimestampFormats

        public void shouldParseTimestampFormats()
                                         throws Exception
        Throws:
        Exception
      • parseDate

        private void parseDate​(String format,
                               boolean validateDate)
      • parseTimestamp

        private void parseTimestamp​(String format,
                                    boolean validateTimestamp)
      • shouldParseAliasInsert

        public void shouldParseAliasInsert()
                                    throws Exception
        Throws:
        Exception
      • shouldParseAliasDelete

        public void shouldParseAliasDelete()
                                    throws Exception
        Throws:
        Exception
      • shouldParseNoWhereClause

        public void shouldParseNoWhereClause()
                                      throws Exception
        Throws:
        Exception
      • shouldParseInsertAndDeleteTable

        public void shouldParseInsertAndDeleteTable()
                                             throws Exception
        Throws:
        Exception
      • shouldParseUpdateTable

        public void shouldParseUpdateTable()
                                    throws Exception
        Throws:
        Exception
      • shouldParseUpdateNoChangesTable

        public void shouldParseUpdateNoChangesTable()
                                             throws Exception
        Throws:
        Exception
      • shouldParseSpecialCharacters

        public void shouldParseSpecialCharacters()
                                          throws Exception
        Throws:
        Exception
      • shouldParseStrangeDml

        public void shouldParseStrangeDml()
                                   throws Exception
        Throws:
        Exception
      • assertDmlParserException

        private void assertDmlParserException​(String sql,
                                              io.debezium.connector.oracle.logminer.parser.DmlParser parser,
                                              Table table,
                                              String txId)
      • verifyUpdate

        private void verifyUpdate​(io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntry record,
                                  boolean checkGeometry,
                                  boolean checkOldValues,
                                  int oldValuesNumber)
      • verifyInsert

        private void verifyInsert​(io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntry record)
      • verifyDelete

        private void verifyDelete​(io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntry record,
                                  boolean checkOldValues)