net.sf.farrago.test.regression
Class FarragoCalcSystemTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.DiffTestCase
              extended by net.sf.farrago.test.ResultSetTestCase
                  extended by net.sf.farrago.test.FarragoTestCase
                      extended by net.sf.farrago.test.regression.FarragoCalcSystemTest
All Implemented Interfaces:
Test

public class FarragoCalcSystemTest
extends FarragoTestCase

This class contains tests that do full vertical system testing downto the calculator (java / fennel).

Since:
April 19, 2004
Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/regression/FarragoCalcSystemTest.java#41 $
Author:
Wael Chatila

Nested Class Summary
static class FarragoCalcSystemTest.VirtualMachine
          Defines a virtual machine (FENNEL, JAVA, AUTO) and the operators it can implement.
 
Nested classes/interfaces inherited from class net.sf.farrago.test.FarragoTestCase
FarragoTestCase.Cleanup, FarragoTestCase.CleanupFactory
 
Field Summary
private static CalcRexImplementorTable fennelTab
           
private static FarragoOJRexImplementorTable javaTab
           
private static SqlStdOperatorTable opTab
           
(package private)  String sqlToExecute
           
(package private)  FarragoCalcSystemTest.VirtualMachine vm
           
 
Fields inherited from class net.sf.farrago.test.FarragoTestCase
allocOwner, connection, preparedStmt, repos, stmt, tracer
 
Fields inherited from class net.sf.farrago.test.ResultSetTestCase
resultSet
 
Fields inherited from class org.eigenbase.test.DiffTestCase
logFile, logOutputStream, refFile
 
Constructor Summary
FarragoCalcSystemTest(FarragoCalcSystemTest.VirtualMachine vm, String sql, String testName)
           
 
Method Summary
private static void addTestsForOp(SqlOperator op, TestSuite suite, FarragoCalcSystemTest.VirtualMachine vm)
           
private static SqlTypeFamily[] findRules(SqlOperandTypeChecker otc)
           
protected  void runTest()
           
protected  void setUp()
           
static Test suite()
           
 
Methods inherited from class net.sf.farrago.test.FarragoTestCase
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite
 
Methods inherited from class net.sf.farrago.test.ResultSetTestCase
compareResultList, compareResultLists, compareResultSet, compareResultSetWithDelta, compareResultSetWithPattern, getResultSetCount
 
Methods inherited from class org.eigenbase.test.DiffTestCase
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, openTestLog, openTestLogOutputStream, setGC, setVerbose
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

opTab

private static final SqlStdOperatorTable opTab

javaTab

private static FarragoOJRexImplementorTable javaTab

fennelTab

private static CalcRexImplementorTable fennelTab

sqlToExecute

String sqlToExecute

vm

FarragoCalcSystemTest.VirtualMachine vm
Constructor Detail

FarragoCalcSystemTest

public FarragoCalcSystemTest(FarragoCalcSystemTest.VirtualMachine vm,
                             String sql,
                             String testName)
                      throws Exception
Throws:
Exception
Method Detail

suite

public static Test suite()
                  throws Exception
Throws:
Exception

addTestsForOp

private static void addTestsForOp(SqlOperator op,
                                  TestSuite suite,
                                  FarragoCalcSystemTest.VirtualMachine vm)
                           throws Exception
Throws:
Exception

findRules

private static SqlTypeFamily[] findRules(SqlOperandTypeChecker otc)

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class FarragoTestCase
Throws:
Exception

runTest

protected void runTest()
                throws Throwable
Overrides:
runTest in class TestCase
Throws:
Throwable