public class DataSourceRegressionTest extends BaseTestCase
BaseTestCase.MockConnectionConfiguration| Modifier and Type | Field and Description |
|---|---|
private javax.naming.Context |
ctx |
conn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
DataSourceRegressionTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
bindDataSource(java.lang.String name,
javax.sql.DataSource ds) |
private javax.sql.DataSource |
lookupDatasourceInJNDI(java.lang.String jndiName) |
private void |
removeFromRef(javax.naming.Reference ref,
java.lang.String key) |
void |
setUp()
Sets up this test, calling registerDataSource() to bind a DataSource into JNDI, using the FSContext JNDI provider from Sun
|
void |
tearDown()
Un-binds the DataSource and closes the context
|
(package private) void |
testBug104954()
Tests fix for Bug#104954 (Bug#33361205), MysqlDataSource fails to URL encode database name when constructing JDBC URL.
|
void |
testBug16791()
Tests fix for BUG#16791 - NullPointerException in MysqlDataSourceFactory due to Reference containing RefAddrs with null content.
|
void |
testBug19169()
Tests fix for BUG#19169 - ConnectionProperties (and thus some subclasses) are not serializable, even though some J2EE containers expect them to be.
|
void |
testBug32101()
Tests fix for BUG#32101 - When using a connection from our ConnectionPoolDataSource, some Connection.prepareStatement() methods would return null instead
of a prepared statement.
|
void |
testBug35810() |
void |
testBug3848()
Tests fix for Bug#3848, port # alone parsed incorrectly
|
void |
testBug3920()
Tests that we can get a connection from the DataSource bound in JNDI during test setup
|
void |
testBug42267() |
void |
testBug4808()
Tests fix for BUG#4808- Calling .close() twice on a PooledConnection causes NPE.
|
void |
testBug72632()
Tests fix for Bug#72632 - NullPointerException for invalid JDBC URL.
|
void |
testBug72890()
Tests fix for BUG#72890 - Java jdbc driver returns incorrect return code when it's part of XA transaction
|
void |
testCSC4616() |
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@BeforeEach
public void setUp()
throws java.lang.Exception
java.lang.Exception@AfterEach
public void tearDown()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug4808()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug3848()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug3920()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug19169()
throws java.lang.Exception
java.lang.Exceptionprivate void bindDataSource(java.lang.String name,
javax.sql.DataSource ds)
throws java.lang.Exception
java.lang.Exceptionprivate javax.sql.DataSource lookupDatasourceInJNDI(java.lang.String jndiName)
throws java.lang.Exception
java.lang.Exception@Test
public void testCSC4616()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug16791()
throws java.lang.Exception
java.lang.Exceptionprivate void removeFromRef(javax.naming.Reference ref,
java.lang.String key)
@Test
public void testBug32101()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug35810()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug42267()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug72890()
throws java.lang.Exception
java.lang.Exception@Test
public void testBug72632()
throws java.lang.Exception
java.lang.Exception@Test
void testBug104954()
throws java.lang.Exception
java.lang.Exception