net.sf.saffron.opt
Class VolcanoPlannerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.sf.saffron.opt.VolcanoPlannerTest
All Implemented Interfaces:
Test

public class VolcanoPlannerTest
extends TestCase

A VolcanoPlannerTest is a unit-test for the optimizer.

Since:
Mar 19, 2003
Version:
$Id: //open/saffron/src/net/sf/saffron/opt/VolcanoPlannerTest.java#1 $
Author:
John V. Sichi

Nested Class Summary
private static class VolcanoPlannerTest.BadSingleRule
           
private static class VolcanoPlannerTest.GoodSingleRule
           
private static class VolcanoPlannerTest.NoneLeafRel
           
private static class VolcanoPlannerTest.NoneSingleRel
           
private static class VolcanoPlannerTest.PhysLeafRel
           
private static class VolcanoPlannerTest.PhysLeafRule
           
private static class VolcanoPlannerTest.PhysSingleRel
           
private static class VolcanoPlannerTest.TestEnvironment
           
private static class VolcanoPlannerTest.TestLeafRel
           
private static class VolcanoPlannerTest.TestSingleRel
           
 
Field Summary
private static CallingConvention PHYS_CALLING_CONVENTION
          Private calling convention representing a physical implementation.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
VolcanoPlannerTest(String name)
           
 
Method Summary
private  VolcanoCluster newCluster(VolcanoPlanner planner)
           
 void testTransformLeaf()
          Test transformation of a leaf from NONE to PHYS.
 void testTransformSingleBad()
          Test transformation of a single+leaf from NONE to PHYS.
 void testTransformSingleGood()
          Test transformation of a single+leaf from NONE to PHYS.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PHYS_CALLING_CONVENTION

private static final CallingConvention PHYS_CALLING_CONVENTION
Private calling convention representing a physical implementation.

Constructor Detail

VolcanoPlannerTest

public VolcanoPlannerTest(String name)
Method Detail

newCluster

private VolcanoCluster newCluster(VolcanoPlanner planner)

testTransformLeaf

public void testTransformLeaf()
Test transformation of a leaf from NONE to PHYS.


testTransformSingleGood

public void testTransformSingleGood()
Test transformation of a single+leaf from NONE to PHYS.


testTransformSingleBad

public void testTransformSingleBad()
Test transformation of a single+leaf from NONE to PHYS. This one doesn't work due to the definition of BadSingleRule.


SourceForge.net_Logo