org.eigenbase.sql.parser
Class SqlParserTest.TesterImpl
java.lang.Object
org.eigenbase.sql.parser.SqlParserTest.TesterImpl
- All Implemented Interfaces:
- SqlParserTest.Tester
- Direct Known Subclasses:
- SqlParserTest.UnparsingTesterImpl
- Enclosing class:
- SqlParserTest
protected class SqlParserTest.TesterImpl
- extends Object
- implements SqlParserTest.Tester
Default implementation of SqlParserTest.Tester
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlParserTest.TesterImpl
protected SqlParserTest.TesterImpl()
check
public void check(String sql,
String expected)
- Specified by:
check
in interface SqlParserTest.Tester
parseStmtAndHandleEx
protected SqlNode parseStmtAndHandleEx(String sql)
checkExp
public void checkExp(String sql,
String expected)
- Specified by:
checkExp
in interface SqlParserTest.Tester
parseExpressionAndHandleEx
protected SqlNode parseExpressionAndHandleEx(String sql)
checkFails
public void checkFails(String sql,
String expectedMsgPattern)
- Specified by:
checkFails
in interface SqlParserTest.Tester
checkExpFails
public void checkExpFails(String sql,
String expectedMsgPattern)
- Tests that an expression throws an exception which matches the given
pattern.
- Specified by:
checkExpFails
in interface SqlParserTest.Tester