org.eigenbase.test
Class HepPlannerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.SqlToRelTestBase
              extended by org.eigenbase.test.RelOptTestBase
                  extended by org.eigenbase.test.HepPlannerTest
All Implemented Interfaces:
Test

public class HepPlannerTest
extends RelOptTestBase

HepPlannerTest is a unit test for HepPlanner. See RelOptRulesTest for an explanation of how to add tests; the tests in this class are targeted at exercising the planner, and use specific rules for convenience only, whereas the tests in that class are targeted at exercising specific rules, and use the planner for convenience only. Hence the split.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/test/HepPlannerTest.java#9 $
Author:
John V. Sichi

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.test.SqlToRelTestBase
SqlToRelTestBase.MockRelOptSchema, SqlToRelTestBase.Tester, SqlToRelTestBase.TesterImpl
 
Field Summary
private static String unionTree
           
 
Fields inherited from class org.eigenbase.test.SqlToRelTestBase
NL, tester
 
Constructor Summary
HepPlannerTest()
           
 
Method Summary
protected  DiffRepository getDiffRepos()
          Returns the default diff repository for this test, or null if there is no repository.
 void testGroup()
           
 void testMatchLimitOneBottomUp()
           
 void testMatchLimitOneTopDown()
           
 void testMatchUntilFixpoint()
           
 void testReplaceCommonSubexpression()
           
 void testRuleClass()
           
 void testRuleDescription()
           
 void testSubprogram()
           
 
Methods inherited from class org.eigenbase.test.RelOptTestBase
checkPlanning, checkPlanning, checkPlanning, checkPlanning, checkPlanning, createProgram
 
Methods inherited from class org.eigenbase.test.SqlToRelTestBase
createTester
 
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

unionTree

private static final String unionTree
See Also:
Constant Field Values
Constructor Detail

HepPlannerTest

public HepPlannerTest()
Method Detail

getDiffRepos

protected DiffRepository getDiffRepos()
Description copied from class: SqlToRelTestBase
Returns the default diff repository for this test, or null if there is no repository.

The default implementation returns null.

Sub-classes that want to use a diff repository can override. Sub-sub-classes can override again, inheriting test cases and overriding selected test results.

And individual test cases can override by providing a different tester object.

Overrides:
getDiffRepos in class SqlToRelTestBase
Returns:
Diff repository

testRuleClass

public void testRuleClass()
                   throws Exception
Throws:
Exception

testRuleDescription

public void testRuleDescription()
                         throws Exception
Throws:
Exception

testMatchLimitOneTopDown

public void testMatchLimitOneTopDown()
                              throws Exception
Throws:
Exception

testMatchLimitOneBottomUp

public void testMatchLimitOneBottomUp()
                               throws Exception
Throws:
Exception

testMatchUntilFixpoint

public void testMatchUntilFixpoint()
                            throws Exception
Throws:
Exception

testReplaceCommonSubexpression

public void testReplaceCommonSubexpression()
                                    throws Exception
Throws:
Exception

testSubprogram

public void testSubprogram()
                    throws Exception
Throws:
Exception

testGroup

public void testGroup()
               throws Exception
Throws:
Exception