org.eigenbase.sql.parser
Class SqlParserTest.UnparsingTesterImpl

java.lang.Object
  extended by org.eigenbase.sql.parser.SqlParserTest.TesterImpl
      extended by org.eigenbase.sql.parser.SqlParserTest.UnparsingTesterImpl
All Implemented Interfaces:
SqlParserTest.Tester
Enclosing class:
SqlParserTest

public class SqlParserTest.UnparsingTesterImpl
extends SqlParserTest.TesterImpl

Implementation of SqlParserTest.Tester which makes sure that the results of unparsing a query are consistent with the original query.


Constructor Summary
SqlParserTest.UnparsingTesterImpl()
           
 
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)
           
 
Methods inherited from class org.eigenbase.sql.parser.SqlParserTest.TesterImpl
parseExpressionAndHandleEx, parseStmtAndHandleEx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlParserTest.UnparsingTesterImpl

public SqlParserTest.UnparsingTesterImpl()
Method Detail

check

public void check(String sql,
                  String expected)
Specified by:
check in interface SqlParserTest.Tester
Overrides:
check in class SqlParserTest.TesterImpl

checkExp

public void checkExp(String sql,
                     String expected)
Specified by:
checkExp in interface SqlParserTest.Tester
Overrides:
checkExp in class SqlParserTest.TesterImpl

checkFails

public void checkFails(String sql,
                       String expectedMsgPattern)
Specified by:
checkFails in interface SqlParserTest.Tester
Overrides:
checkFails in class SqlParserTest.TesterImpl

checkExpFails

public void checkExpFails(String sql,
                          String expectedMsgPattern)
Description copied from class: SqlParserTest.TesterImpl
Tests that an expression throws an exception which matches the given pattern.

Specified by:
checkExpFails in interface SqlParserTest.Tester
Overrides:
checkExpFails in class SqlParserTest.TesterImpl