net.sf.saffron.sql2rel
Class ConverterTest

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

public class ConverterTest
extends TestCase

Unit test for SqlToRelConverter.

TODO 15-Nov-2003: pull diff-based-testing infrastructure up from Farrago and use external files instead of inlining expected results here.


Nested Class Summary
(package private) static class ConverterTest.TestContext
          Contains context shared between unit tests.
 
Field Summary
private static String NL
           
private static Pattern pattern
           
private static Pattern pattern2
           
private static ConverterTest.TestContext testContext
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConverterTest()
           
 
Method Summary
 void _testComplexCorrelation()
           
 void _testFromLeftJoinUsing()
           
 void _testFromNaturalRightJoin()
           
 void _testFromQuery()
           
 void _testInCompound()
           
 void _testInList()
           
 void _testInSquared()
           
 void _testInValues()
           
 void _testOrder()
           
 void _testOrderLiteral()
           
 void _testOrderOrdinal()
           
 void _testQueryInWhereUncorrelated()
           
private  void check(String sql, String plan)
           
(package private) static ConverterTest.TestContext getTestContext()
           
protected  void setUp()
           
 void testExistsCorrelated()
           
 void testExistsUncorrelated()
           
 void testFromAlias()
           
 void testFromFullJoin()
           
 void testFromJoin()
           
 void testFromJoin3()
           
 void testFromList()
           
 void testIntegerLiteral()
           
 void testJoinOfValues()
           
 void testQueryInSelect()
           
 void testSelectListAlias()
           
 void testSelectListColumns()
           
 void testStringLiteral()
           
 void testUnion()
           
 void testUnionInFrom()
           
 void testWhereAnd()
           
 void testWhereSimple()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

NL

private static final String NL

testContext

private static ConverterTest.TestContext testContext

pattern

private static final Pattern pattern

pattern2

private static final Pattern pattern2
Constructor Detail

ConverterTest

public ConverterTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Exception

testIntegerLiteral

public void testIntegerLiteral()

testStringLiteral

public void testStringLiteral()

testSelectListAlias

public void testSelectListAlias()

testSelectListColumns

public void testSelectListColumns()

testFromList

public void testFromList()

testFromAlias

public void testFromAlias()

testFromJoin

public void testFromJoin()

_testFromLeftJoinUsing

public void _testFromLeftJoinUsing()

testFromFullJoin

public void testFromFullJoin()

testFromJoin3

public void testFromJoin3()

_testFromNaturalRightJoin

public void _testFromNaturalRightJoin()

testWhereSimple

public void testWhereSimple()

testWhereAnd

public void testWhereAnd()

_testOrder

public void _testOrder()

_testOrderOrdinal

public void _testOrderOrdinal()

_testOrderLiteral

public void _testOrderLiteral()

_testFromQuery

public void _testFromQuery()

testQueryInSelect

public void testQueryInSelect()

testExistsUncorrelated

public void testExistsUncorrelated()

_testQueryInWhereUncorrelated

public void _testQueryInWhereUncorrelated()

testExistsCorrelated

public void testExistsCorrelated()

testUnion

public void testUnion()

testUnionInFrom

public void testUnionInFrom()

testJoinOfValues

public void testJoinOfValues()

_testComplexCorrelation

public void _testComplexCorrelation()

_testInList

public void _testInList()

_testInValues

public void _testInValues()

_testInCompound

public void _testInCompound()

_testInSquared

public void _testInSquared()

check

private void check(String sql,
                   String plan)

getTestContext

static ConverterTest.TestContext getTestContext()

SourceForge.net_Logo