Class OracleDmlParserTest


  • public class OracleDmlParserTest
    extends Object
    This is the test suite for Oracle Antlr and jsqlparser DML parser unit testing
    • 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)