org.eigenbase.sql.parser
Class SqlParserTest.TesterImpl

java.lang.Object
  extended by 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.


Constructor Summary
protected SqlParserTest.TesterImpl()
           
 
Method Summary
 void check(String sql, String expected)
           
 void checkExp(String sql, String expected)
           
 void checkExpFails(String sql, String expectedMsgPattern)
          Tests that an expression throws an exception which matches the given pattern.
 void checkFails(String sql, String expectedMsgPattern)
           
protected  SqlNode parseExpressionAndHandleEx(String sql)
           
protected  SqlNode parseStmtAndHandleEx(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlParserTest.TesterImpl

protected SqlParserTest.TesterImpl()
Method Detail

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