Package org.apache.calcite.sql.parser
Class SqlParserTest.UnparsingTesterImpl
- java.lang.Object
-
- org.apache.calcite.sql.parser.SqlParserTest.TesterImpl
-
- org.apache.calcite.sql.parser.SqlParserTest.UnparsingTesterImpl
-
- All Implemented Interfaces:
SqlParserTest.Tester
- Enclosing class:
- SqlParserTest
public class SqlParserTest.UnparsingTesterImpl extends SqlParserTest.TesterImpl
Implementation ofSqlParserTest.Tester
which makes sure that the results of unparsing a query are consistent with the original query.
-
-
Constructor Summary
Constructors Constructor Description UnparsingTesterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(java.lang.String sql, java.lang.String expected)
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, java.lang.String expectedMsgPattern)
-
Methods inherited from class org.apache.calcite.sql.parser.SqlParserTest.TesterImpl
checkNode, parseExpressionAndHandleEx, parseStmtAndHandleEx
-
-
-
-
Method Detail
-
check
public void check(java.lang.String sql, java.lang.String expected)
- Specified by:
check
in interfaceSqlParserTest.Tester
- Overrides:
check
in classSqlParserTest.TesterImpl
-
checkExp
public void checkExp(java.lang.String sql, java.lang.String expected)
- Specified by:
checkExp
in interfaceSqlParserTest.Tester
- Overrides:
checkExp
in classSqlParserTest.TesterImpl
-
checkFails
public void checkFails(java.lang.String sql, java.lang.String expectedMsgPattern)
- Specified by:
checkFails
in interfaceSqlParserTest.Tester
- Overrides:
checkFails
in classSqlParserTest.TesterImpl
-
checkExpFails
public void checkExpFails(java.lang.String sql, java.lang.String expectedMsgPattern)
Description copied from class:SqlParserTest.TesterImpl
Tests that an expression throws an exception which matches the given pattern.- Specified by:
checkExpFails
in interfaceSqlParserTest.Tester
- Overrides:
checkExpFails
in classSqlParserTest.TesterImpl
-
-