|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.FarragoQueryTest
public class FarragoQueryTest
FarragoQueryTest tests miscellaneous aspects of Farrago query processing which are impossible to test via SQL scripts.
Nested Class Summary | |
---|---|
private static class |
FarragoQueryTest.TxnListener
|
Nested classes/interfaces inherited from class net.sf.farrago.test.FarragoTestCase |
---|
FarragoTestCase.Cleanup, FarragoTestCase.CleanupFactory |
Field Summary |
---|
Fields inherited from class net.sf.farrago.test.FarragoTestCase |
---|
allocOwner, connection, preparedStmt, repos, stmt, tracer |
Fields inherited from class net.sf.farrago.test.ResultSetTestCase |
---|
resultSet |
Fields inherited from class org.eigenbase.test.DiffTestCase |
---|
logFile, logOutputStream, refFile |
Constructor Summary | |
---|---|
FarragoQueryTest(String testName)
Creates a new FarragoQueryTest object. |
Method Summary | |
---|---|
private boolean |
checkLurqlSecurityRoleCycle(String lurql,
String granteeName,
String grantedRoleName)
|
private void |
checkLurqlTableSchema(String lurql,
String tableName,
String schemaName)
|
private String |
fetchLobText(String mofId,
String attributeName)
|
private String |
getSchemaMofId(String schemaName,
StringBuilder descriptionOut)
|
static Test |
suite()
|
void |
testAbandonedResultSet()
|
void |
testAutocommitCursorLimit()
Verifies non-standard behavior preventing more than one statement active at a time in autocommit mode. |
void |
testCheckSecurityRoleCyleLurqlQuery()
Tests execution of a LURQL query to check role cycle. |
void |
testDateTimeOverLocalJdbc()
Tests that ResultSet.getObject(int) implementation in farrago returns a distinct object for a ZonelessDateTime type column in each new row. |
void |
testDynamicParamInUdx()
Tests a query which involves a dynamic parameter in the FROM clause. |
void |
testInternalLurqlQuery()
Tests execution of an internal LURQL query defined in a resource file. |
void |
testLobTextUdxEmptyString()
|
void |
testLobTextUdxMultiChunk()
|
void |
testLobTextUdxNull()
|
void |
testLobTextUdxOneChunk()
|
void |
testNoAutocommitCursorLimit()
Verifies that multiple statements can be active when not in autocommit mode. |
void |
testNoNativeTraceLeak()
|
void |
testOrderByVarbinary()
Tests a query which involves sorting VARBINARY values. |
void |
testPrimitiveColumnOperation()
Tests a query which involves operation on columns. |
void |
testRelMetadata()
Tests relational expression metadata derivation via FarragoSession.analyzeSql. |
void |
testSetCatalog()
Tests a query using a different catalog. |
void |
testTxnMgrListener()
Tests that the transaction manager correctly notifies listeners of table accesses. |
void |
testUdxRelMetadata()
|
void |
testUdxReturnsColListParamRelMetadata()
|
void |
testUnencodableUnicodeLiteral()
|
void |
testUnicodeLiteral()
|
void |
testVarbinaryComparison()
Tests a query which involves comparison with VARBINARY values. |
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, wrappedSuite |
Methods inherited from class net.sf.farrago.test.ResultSetTestCase |
---|
compareResultList, compareResultLists, compareResultSet, compareResultSetWithDelta, compareResultSetWithPattern, getResultSetCount |
Methods inherited from class org.eigenbase.test.DiffTestCase |
---|
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, openTestLog, openTestLogOutputStream, setGC, setVerbose |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Constructor Detail |
---|
public FarragoQueryTest(String testName) throws Exception
testName
- JUnit test name
Exception
- .Method Detail |
---|
public static Test suite()
public void testPrimitiveColumnOperation() throws Exception
Exception
public void testVarbinaryComparison() throws Exception
Exception
public void testDynamicParamInUdx() throws Exception
Exception
public void testOrderByVarbinary() throws Exception
Exception
public void testSetCatalog() throws Exception
Exception
public void testInternalLurqlQuery() throws Exception
Exception
public void testAutocommitCursorLimit() throws Exception
Exception
public void testNoAutocommitCursorLimit() throws Exception
Exception
private void checkLurqlTableSchema(String lurql, String tableName, String schemaName) throws Exception
Exception
public void testCheckSecurityRoleCyleLurqlQuery() throws Exception
Exception
private boolean checkLurqlSecurityRoleCycle(String lurql, String granteeName, String grantedRoleName) throws Exception
Exception
public void testAbandonedResultSet() throws Exception
Exception
public void testRelMetadata() throws Exception
Exception
public void testUdxRelMetadata() throws Exception
Exception
public void testUdxReturnsColListParamRelMetadata() throws Exception
Exception
public void testTxnMgrListener() throws Exception
Exception
public void testDateTimeOverLocalJdbc() throws Exception
Exception
public void testLobTextUdxNull() throws Exception
Exception
public void testLobTextUdxEmptyString() throws Exception
Exception
public void testLobTextUdxOneChunk() throws Exception
Exception
public void testLobTextUdxMultiChunk() throws Exception
Exception
private String getSchemaMofId(String schemaName, StringBuilder descriptionOut)
private String fetchLobText(String mofId, String attributeName) throws Exception
Exception
public void testNoNativeTraceLeak() throws Exception
Exception
public void testUnicodeLiteral() throws Exception
Exception
public void testUnencodableUnicodeLiteral()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |