net.sf.farrago.test
Class FarragoAutoCalcRulesTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.DiffTestCase
net.sf.farrago.test.ResultSetTestCase
net.sf.farrago.test.FarragoTestCase
net.sf.farrago.test.FarragoAutoCalcRulesTest
- All Implemented Interfaces:
- Test
public class FarragoAutoCalcRulesTest
- extends FarragoTestCase
FarragoAutoCalcRuleTest tests FarragoAutoCalcRule. This class duplicates some
of FarragoTestCase's set up mechanism. It does so in order to register
JPLUS(a Java-only duplicate of the SQL plus operator) and CPLUS (a Fennel
Calc-only analog) as SqlOperators. Tests within the class use JPLUS and CPLUS
in SQL statements to guarantee expressions that can only be implemented by
dividing execution between the Java and Fennel calculators.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoAutoCalcRulesTest.java#2 $
- Author:
- Stephan Zuercher
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, setUp, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite |
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 |
FarragoAutoCalcRulesTest
public FarragoAutoCalcRulesTest(String testName)
throws Exception
- Creates a new FarragoAutoCalcRulesTest object.
- Parameters:
testName
- .
- Throws:
Exception
suite
public static Test suite()
wrappedSuite
public static Test wrappedSuite(TestSuite suite)
staticAutoCalcSetUp
public static String staticAutoCalcSetUp()
throws Exception
- Throws:
Exception
staticAutoCalcTearDown
public static void staticAutoCalcTearDown(String originalDriverClass)
throws Exception
- Throws:
Exception
testFarragoAutoCalcRuleByDiff
public void testFarragoAutoCalcRuleByDiff()
throws Exception
- Throws:
Exception
testSimple
public void testSimple()
throws SQLException
- Throws:
SQLException
testDynamicParameterInConditional
public void testDynamicParameterInConditional()
throws SQLException
- Throws:
SQLException
testDynamicParameterInCall
public void testDynamicParameterInCall()
throws SQLException
- Throws:
SQLException
registerTestJavaOps
public static void registerTestJavaOps(FarragoOJRexImplementorTable implementorTable,
SqlStdOperatorTable opTab)
registerTestCppOps
public static void registerTestCppOps(CalcRexImplementorTableImpl implementor,
SqlStdOperatorTable opTab)