Class SqlParserTest.TesterImpl

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TesterImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(java.lang.String sql, java.lang.String expected)  
      private void check​(org.apache.calcite.sql.SqlNode sqlNode, java.lang.String expected)  
      protected void checkEx​(java.lang.String expectedMsgPattern, org.apache.calcite.sql.parser.SqlParserUtil.StringAndPos sap, java.lang.Throwable thrown)  
      void checkExp​(java.lang.String sql, java.lang.String expected)  
      void checkExpFails​(java.lang.String sql, java.lang.String expectedMsgPattern)
      Tests that an expression throws an exception which matches the given pattern.
      void checkFails​(java.lang.String sql, boolean list, java.lang.String expectedMsgPattern)  
      void checkList​(java.lang.String sql, java.util.List<java.lang.String> expected)  
      void checkNode​(java.lang.String sql, org.hamcrest.Matcher<org.apache.calcite.sql.SqlNode> matcher)  
      protected org.apache.calcite.sql.SqlNode parseExpressionAndHandleEx​(java.lang.String sql)  
      protected org.apache.calcite.sql.SqlNode parseStmtAndHandleEx​(java.lang.String sql)  
      protected org.apache.calcite.sql.SqlNodeList parseStmtsAndHandleEx​(java.lang.String sql)
      Parses a list of statements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TesterImpl

        protected TesterImpl()
    • Method Detail

      • check

        private void check​(org.apache.calcite.sql.SqlNode sqlNode,
                           java.lang.String expected)
      • checkList

        public void checkList​(java.lang.String sql,
                              java.util.List<java.lang.String> expected)
        Specified by:
        checkList in interface SqlParserTest.Tester
      • check

        public void check​(java.lang.String sql,
                          java.lang.String expected)
        Specified by:
        check in interface SqlParserTest.Tester
      • parseStmtAndHandleEx

        protected org.apache.calcite.sql.SqlNode parseStmtAndHandleEx​(java.lang.String sql)
      • parseStmtsAndHandleEx

        protected org.apache.calcite.sql.SqlNodeList parseStmtsAndHandleEx​(java.lang.String sql)
        Parses a list of statements.
      • checkExp

        public void checkExp​(java.lang.String sql,
                             java.lang.String expected)
        Specified by:
        checkExp in interface SqlParserTest.Tester
      • parseExpressionAndHandleEx

        protected org.apache.calcite.sql.SqlNode parseExpressionAndHandleEx​(java.lang.String sql)
      • checkFails

        public void checkFails​(java.lang.String sql,
                               boolean list,
                               java.lang.String expectedMsgPattern)
        Specified by:
        checkFails in interface SqlParserTest.Tester
      • checkNode

        public void checkNode​(java.lang.String sql,
                              org.hamcrest.Matcher<org.apache.calcite.sql.SqlNode> matcher)
        Specified by:
        checkNode in interface SqlParserTest.Tester
      • checkExpFails

        public void checkExpFails​(java.lang.String sql,
                                  java.lang.String expectedMsgPattern)
        Tests that an expression throws an exception which matches the given pattern.
        Specified by:
        checkExpFails in interface SqlParserTest.Tester
      • checkEx

        protected void checkEx​(java.lang.String expectedMsgPattern,
                               org.apache.calcite.sql.parser.SqlParserUtil.StringAndPos sap,
                               java.lang.Throwable thrown)