public final class SysDiagVTIMappingTest extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
ALL_SPACE_TABLE_COLUMNS |
private static java.lang.String |
BAD_FROM_LIST_JOIN |
private static java.lang.String |
testLogFile |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
SysDiagVTIMappingTest(java.lang.String name)
Public constructor required for running test as standalone JUnit.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkIllegalUses(java.sql.Statement st,
java.lang.String vtiTableName,
java.lang.String vtiMethodName,
java.lang.String args,
java.lang.String colName) |
void |
setUp() |
static junit.framework.Test |
suite() |
void |
tearDown()
Tear down this fixture, sub-classes should call
super.tearDown().
|
void |
test_5391()
Test date formatting in the vtis which read the error log.
|
void |
test_vti2vtiJoinInFromList()
Verify that you can't join diagnostic VTIs to one another in the FROM list.
|
void |
testContainedRoles()
Basic sanity test for SYSCS_DIAG.CONTAINED_ROLES.
|
void |
testCorrelatedReferences()
Test that diagnostic VTIs will work correctly when they
are invoked in a subquery with correlated references to
outer query blocks.
|
void |
testErrorLogReader()
Just run a couple of sanity checks to makes sure the table
mapping for org.apache.derby.diag.ErrorLogReader() works
correctly and fails where it is supposed to.
|
void |
testInvalidTableFunctions()
Tests to make sure that attempts to use the TABLE constructor
with things other than the VTI diagnostic table functions
do not work (with the exception of SELECT and VALUES queries,
which should work as normal).
|
void |
testOrderBy()
Test that diagnostic VTIs will work correctly when an ORDER BY
clause appears and/or sort elimination occurs.
|
void |
testSpaceTable_0argConstructor()
Test the 0-arg constructor of the SPACE_TABLE vti.
|
void |
testSpaceTable()
We use the SpaceTable VTI as our primary test VTI to verify that
that VTI table mappings in general are working as expected.
|
void |
testStatementDuration()
Just run a couple of sanity checks to makes sure the table
mapping for org.apache.derby.diag.StatementDuration() works
correctly and fails where it is supposed to.
|
private void |
vetTimestamp(java.sql.ResultSet rs) |
assertCallError, assertCheckTable, assertCommitError, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertResults, assertResults, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, chattyPrepare, chattyPrepareCall, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, dumpRs, dumpRs, emptyStatementCache, executeQuery, expectCompilationError, expectCompilationError, expectExecutionError, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, goodStatement, goodUpdate, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSameNullness, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, newAssertionFailedError, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemErr, setSystemOut, setSystemProperty, sleep, sleepAtLeastOneTick, traceit, vmAtLeast
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
private static final java.lang.String testLogFile
private static final java.lang.String[] ALL_SPACE_TABLE_COLUMNS
private static final java.lang.String BAD_FROM_LIST_JOIN
public SysDiagVTIMappingTest(java.lang.String name)
public static junit.framework.Test suite()
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
BaseJDBCTestCase
tearDown
in class BaseJDBCTestCase
java.lang.Exception
public void testSpaceTable() throws java.lang.Exception
java.lang.Exception
public void testSpaceTable_0argConstructor() throws java.lang.Exception
java.lang.Exception
public void test_vti2vtiJoinInFromList() throws java.lang.Exception
java.lang.Exception
public void testStatementDuration() throws java.lang.Exception
java.lang.Exception
public void testErrorLogReader() throws java.lang.Exception
java.lang.Exception
public void testInvalidTableFunctions() throws java.lang.Exception
java.lang.Exception
public void testOrderBy() throws java.sql.SQLException
java.sql.SQLException
public void testCorrelatedReferences() throws java.sql.SQLException
java.sql.SQLException
public void testContainedRoles() throws java.sql.SQLException
java.sql.SQLException
public void test_5391() throws java.lang.Exception
java.lang.Exception
private void vetTimestamp(java.sql.ResultSet rs) throws java.lang.Exception
java.lang.Exception
private void checkIllegalUses(java.sql.Statement st, java.lang.String vtiTableName, java.lang.String vtiMethodName, java.lang.String args, java.lang.String colName) throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.