net.sf.farrago.test
Class Rex2CalcPlanTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.farrago.test.Rex2CalcPlanTest
All Implemented Interfaces:
Test

public class Rex2CalcPlanTest
extends TestCase

Validates that RexNode expressions get translated to the correct calculator program.

Since:
Feb 3, 2004
Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/Rex2CalcPlanTest.java#5 $
Author:
Wael Chatila

Nested Class Summary
(package private) static interface Rex2CalcPlanTest.Tester
          Test helper.
(package private)  class Rex2CalcPlanTest.TesterImpl
          Implementation of Rex2CalcPlanTest.Tester.
 
Field Summary
protected  Rex2CalcPlanTest.Tester tester
           
 
Constructor Summary
Rex2CalcPlanTest(String testName)
           
 
Method Summary
private  void checkBinaryOp(String op, String instr)
           
private  void checkCharOp(String op, String instr)
           
protected  Rex2CalcPlanTest.Tester createTester()
           
protected  DiffRepository getDiffRepos()
           
 void testAggCount()
           
 void testAggSum()
           
 void testAggSumExp()
           
 void testArithmeticOperators()
           
 void testBetween1()
           
 void testBetween2()
           
 void testBetween3()
           
 void testBetween4()
           
 void testBinaryGt()
           
 void testBooleanExpressions()
           
 void testCase1()
           
 void testCase2()
           
 void testCase3()
           
 void testCaseExpressions()
           
 void testCastCharTypesToNumbersAndBack()
           
 void testCastNull()
           
 void testCharEq()
           
 void testCharGe()
           
 void testCharGt()
           
 void testCharLe()
           
 void testCharLt()
           
 void testCharNe()
           
 void testCoalesce()
           
 void testFunctionInFunction()
           
 void testHexBitBinaryString()
           
 void testJdbcFunctionSyntax()
           
 void testLikeAndSimilar()
           
 void testMixedExpression()
           
 void testMixingTypes()
           
 void testNullifExpression()
           
 void testNumbers()
           
 void testOverlay()
           
 void testPosition()
           
 void testScalarExpression()
           
 void testSimpleCompare()
           
 void testSimplePassThroughFilter()
           
 void testSimplyEqualsFilter()
           
 void testSimplyEqualsFilterShortCircuit()
           
 void testSimplyEqualsFilterWithComments()
           
 void testStringFunctions()
           
 void testStringLiterals()
           
 void testWindowDisallowPartial()
           
 void testWindowedFirstLastValue()
           
 void testWindowedMinMax()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

tester

protected final Rex2CalcPlanTest.Tester tester
Constructor Detail

Rex2CalcPlanTest

public Rex2CalcPlanTest(String testName)
Method Detail

createTester

protected Rex2CalcPlanTest.Tester createTester()

getDiffRepos

protected DiffRepository getDiffRepos()

testSimplePassThroughFilter

public void testSimplePassThroughFilter()

testAggCount

public void testAggCount()

testAggSum

public void testAggSum()

testAggSumExp

public void testAggSumExp()

testWindowedMinMax

public void testWindowedMinMax()

testWindowedFirstLastValue

public void testWindowedFirstLastValue()

testWindowDisallowPartial

public void testWindowDisallowPartial()

testSimplyEqualsFilter

public void testSimplyEqualsFilter()

testSimplyEqualsFilterWithComments

public void testSimplyEqualsFilterWithComments()

testSimplyEqualsFilterShortCircuit

public void testSimplyEqualsFilterShortCircuit()

testBooleanExpressions

public void testBooleanExpressions()

testScalarExpression

public void testScalarExpression()

testMixedExpression

public void testMixedExpression()

testNumbers

public void testNumbers()

testHexBitBinaryString

public void testHexBitBinaryString()

testStringLiterals

public void testStringLiterals()

testSimpleCompare

public void testSimpleCompare()

testArithmeticOperators

public void testArithmeticOperators()

testFunctionInFunction

public void testFunctionInFunction()

testCaseExpressions

public void testCaseExpressions()

testNullifExpression

public void testNullifExpression()

testCoalesce

public void testCoalesce()

testCase1

public void testCase1()

testCase2

public void testCase2()

testCase3

public void testCase3()

testCharEq

public void testCharEq()

testCharNe

public void testCharNe()

testCharGt

public void testCharGt()

testCharLt

public void testCharLt()

testCharGe

public void testCharGe()

testCharLe

public void testCharLe()

checkCharOp

private void checkCharOp(String op,
                         String instr)

testBinaryGt

public void testBinaryGt()

checkBinaryOp

private void checkBinaryOp(String op,
                           String instr)

testStringFunctions

public void testStringFunctions()

testPosition

public void testPosition()

testOverlay

public void testOverlay()

testLikeAndSimilar

public void testLikeAndSimilar()

testBetween1

public void testBetween1()

testBetween2

public void testBetween2()

testBetween3

public void testBetween3()

testBetween4

public void testBetween4()

testCastNull

public void testCastNull()

testJdbcFunctionSyntax

public void testJdbcFunctionSyntax()

testMixingTypes

public void testMixingTypes()

testCastCharTypesToNumbersAndBack

public void testCastCharTypesToNumbersAndBack()