public class MetadataTest extends BaseTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTest.TestGetSqlKeywordsDynamicQueryInterceptor |
BaseTestCase.MockConnectionConfigurationconn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
MetadataTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkBitOrBooleanType(boolean usingBit) |
void |
testBitType() |
void |
testForeignKeys() |
void |
testGeneratedColumns()
WL#411 - Generated columns.
|
private void |
testGetBestRowIdentifier_checkResult(java.sql.ResultSet rs1) |
void |
testGetBestRowIdentifier() |
void |
testGetCatalogVsGetSchemas() |
void |
testGetColumnPrivileges()
Tests the implementation of column privileges metadata.
|
void |
testGetColumns()
Tests the implementation of getColumns.
|
void |
testGetCrossReferenceUsingInfoSchema()
Tests the implementation of Information Schema for foreign key.
|
private void |
testGetExportedKeys_checkResult(boolean useIS,
boolean dbMapsToSchema) |
void |
testGetExportedKeys() |
private void |
testGetFunctionColumns_checkResult(boolean dbMapsToSchema) |
void |
testGetFunctionColumns() |
private void |
testGetFunctions_checkResult(boolean dbMapsToSchema) |
void |
testGetFunctions() |
private void |
testGetImportedKeys_checkResult(boolean useIS,
boolean dbMapsToSchema) |
void |
testGetImportedKeys() |
void |
testGetIndexInfo() |
void |
testGetPrimaryKeys() |
void |
testGetPrimaryKeysUsingInfoShcema()
Tests the implementation of Information Schema for primary keys.
|
private void |
testGetProcedureColumns_checkResult(boolean dbMapsToSchema) |
void |
testGetProcedureColumns() |
private void |
testGetProcedures_checkResult(boolean dbMapsToSchema) |
void |
testGetProcedures() |
void |
testGetSqlKeywordsDynamic()
Tests DatabaseMetaData.getSQLKeywords().
|
void |
testGetSqlKeywordsStatic()
Tests DatabaseMetaData.getSQLKeywords().
|
private void |
testGetTablePrivileges_checkResult(boolean dbMapsToSchema,
java.lang.String tableName) |
void |
testGetTablePrivileges() |
private void |
testGetTables_checkResult(boolean useIS,
boolean dbMapsToSchema) |
void |
testGetTables() |
void |
testGetTablesUsingInfoSchema()
Tests the implementation of Information Schema for tables.
|
void |
testResultSetMetaDataMethods() |
void |
testRSMDIsReadOnly()
Tests detection of read-only fields.
|
void |
testSupports() |
void |
testSupportsSelectForUpdate() |
void |
testTinyint1IsBit() |
void |
testViewMetaData()
Tests the implementation of metadata for views.
|
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimum@Test
public void testSupports()
throws java.sql.SQLException
java.sql.SQLException@Test
public void testGetCatalogVsGetSchemas()
throws java.sql.SQLException
java.sql.SQLException@Test
public void testForeignKeys()
throws java.sql.SQLException
java.sql.SQLException@Test
public void testGetPrimaryKeys()
throws java.sql.SQLException
java.sql.SQLException@Test
public void testViewMetaData()
throws java.sql.SQLException
java.sql.SQLException@Test
public void testRSMDIsReadOnly()
throws java.lang.Exception
java.lang.Exception@Test
public void testBitType()
throws java.lang.Exception
java.lang.Exception@Test
public void testSupportsSelectForUpdate()
throws java.lang.Exception
java.lang.Exception@Test
public void testTinyint1IsBit()
throws java.lang.Exception
java.lang.Exception@Test
private void checkBitOrBooleanType(boolean usingBit)
throws java.sql.SQLException
java.sql.SQLException@Test
public void testResultSetMetaDataMethods()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetPrimaryKeysUsingInfoShcema()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetIndexInfo()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetColumns()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetTablesUsingInfoSchema()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetTables()
throws java.lang.Exception
java.lang.Exception@Test
private void testGetTables_checkResult(boolean useIS,
boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetColumnPrivileges()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetProcedures()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetProcedures_checkResult(boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetFunctions()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetFunctions_checkResult(boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetProcedureColumns()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetProcedureColumns_checkResult(boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetFunctionColumns()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetFunctionColumns_checkResult(boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetCrossReferenceUsingInfoSchema()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetExportedKeys()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetExportedKeys_checkResult(boolean useIS,
boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetImportedKeys()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetImportedKeys_checkResult(boolean useIS,
boolean dbMapsToSchema)
throws java.lang.Exception
java.lang.Exception@Test
public void testGeneratedColumns()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetSqlKeywordsStatic()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetSqlKeywordsDynamic()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetTablePrivileges()
throws java.lang.Exception
java.lang.Exceptionprivate void testGetTablePrivileges_checkResult(boolean dbMapsToSchema,
java.lang.String tableName)
throws java.lang.Exception
java.lang.Exception@Test
public void testGetBestRowIdentifier()
throws java.lang.Exception
java.lang.Exception@Test
private void testGetBestRowIdentifier_checkResult(java.sql.ResultSet rs1)
throws java.lang.Exception
java.lang.Exception