org.eigenbase.test
Class SqlValidatorFeatureTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.SqlValidatorTestCase
              extended by org.eigenbase.test.SqlValidatorFeatureTest
All Implemented Interfaces:
Test

public class SqlValidatorFeatureTest
extends SqlValidatorTestCase

SqlValidatorFeatureTest verifies that features can be independently enabled or disabled.

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

Nested Class Summary
private  class SqlValidatorFeatureTest.FeatureTesterImpl
           
private  class SqlValidatorFeatureTest.FeatureValidator
           
 
Nested classes/interfaces inherited from class org.eigenbase.test.SqlValidatorTestCase
SqlValidatorTestCase.Tester, SqlValidatorTestCase.TesterImpl
 
Field Summary
private  org.eigenbase.resgen.ResourceDefinition disabledFeature
           
private static String FEATURE_DISABLED
           
 
Fields inherited from class org.eigenbase.test.SqlValidatorTestCase
NL, tester
 
Constructor Summary
SqlValidatorFeatureTest(String name)
           
 
Method Summary
private  void checkFeature(String sql, org.eigenbase.resgen.ResourceDefinition feature)
           
 SqlValidatorTestCase.Tester getTester(SqlConformance conformance)
          Returns a tester.
 void testDistinct()
           
 void testExcept()
           
 void testIntersect()
           
 void testMultiset()
           
 void testOrderByDesc()
           
 void testTablesample()
           
 
Methods inherited from class org.eigenbase.test.SqlValidatorTestCase
assertExceptionIsThrown, check, checkCharset, checkCollation, checkColumnType, checkEx, checkExp, checkExpFails, checkExpType, checkFails, checkIntervalConv, checkResultType, checkWholeExpFails
 
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

FEATURE_DISABLED

private static final String FEATURE_DISABLED
See Also:
Constant Field Values

disabledFeature

private org.eigenbase.resgen.ResourceDefinition disabledFeature
Constructor Detail

SqlValidatorFeatureTest

public SqlValidatorFeatureTest(String name)
Method Detail

getTester

public SqlValidatorTestCase.Tester getTester(SqlConformance conformance)
Description copied from class: SqlValidatorTestCase
Returns a tester. Derived classes should override this method to run the same set of tests in a different testing environment.

Overrides:
getTester in class SqlValidatorTestCase
Parameters:
conformance - Language version tests should check compatibility with

testDistinct

public void testDistinct()

testOrderByDesc

public void testOrderByDesc()

testIntersect

public void testIntersect()

testExcept

public void testExcept()

testMultiset

public void testMultiset()

testTablesample

public void testTablesample()

checkFeature

private void checkFeature(String sql,
                          org.eigenbase.resgen.ResourceDefinition feature)