| |
|
| testsuite.BaseTestCase testsuite.simple.ConnectionTest
ConnectionTest | public class ConnectionTest extends BaseTestCase (Code) | | Tests java.sql.Connection functionality ConnectionTest.java,v 1.1 2002/12/06
22:01:05 mmatthew Exp
author: Mark Matthews |
Inner Class :class SpawnedWorkerCounter | |
Inner Class :class LocalSocketAddressCheckThread extends Thread | |
ConnectionTest | public ConnectionTest(String name)(Code) | | Constructor for ConnectionTest.
Parameters: name - the name of the test to run |
main | public static void main(String[] args)(Code) | | Runs all test cases in this test suite
Parameters: args - |
testCatalog | public void testCatalog() throws Exception(Code) | | Tests catalog functionality
throws: Exception - if an error occurs |
testClusterConnection | public void testClusterConnection() throws Exception(Code) | | Tests a cluster connection for failover, requires a two-node cluster URL
specfied in com.mysql.jdbc.testsuite.ClusterUrl system proeprty.
throws: Exception - DOCUMENT ME! |
testConnectionPropertiesTransform | public void testConnectionPropertiesTransform() throws Exception(Code) | | Tests functionality of the ConnectionPropertiesTransform interface.
throws: Exception - if the test fails. |
testCouplingOfCursorFetch | public void testCouplingOfCursorFetch() throws Exception(Code) | | Checks if setting useCursorFetch to "true" automatically
enables server-side prepared statements.
|
testCreateDatabaseIfNotExist | public void testCreateDatabaseIfNotExist() throws Exception(Code) | | |
testDeadlockDetection | public void testDeadlockDetection() throws Exception(Code) | | DOCUMENT ME!
throws: Exception - DOCUMENT ME! |
testDontTrackOpenResources | public void testDontTrackOpenResources() throws Exception(Code) | | Checks implementation of 'dontTrackOpenResources' property.
throws: Exception - if the test fails. |
testDumpQueriesOnException | public void testDumpQueriesOnException() throws Exception(Code) | | |
testFailoverConnection | public void testFailoverConnection() throws Exception(Code) | | Tests whether re-connect with non-read-only connection can happen.
throws: Exception - if the test fails. |
testGatherPerfMetrics | public void testGatherPerfMetrics() throws Exception(Code) | | Tests if gatherPerfMetrics works.
throws: Exception - if the test fails |
testIsolationLevel | public void testIsolationLevel() throws Exception(Code) | | Tests isolation level functionality
throws: Exception - if an error occurs |
testLocalInfileDisabled | public void testLocalInfileDisabled() throws Exception(Code) | | |
testLocalInfileWithUrl | public void testLocalInfileWithUrl() throws Exception(Code) | | Tests functionality of using URLs in 'LOAD DATA LOCAL INFILE' statements.
throws: Exception - if the test fails. |
testLocalSocketAddress | public void testLocalSocketAddress() throws Exception(Code) | | Tests feature of "localSocketAddress", by enumerating local IF's and
trying each one in turn. This test might take a long time to run, since
we can't set timeouts if we're using localSocketAddress. We try and keep
the time down on the testcase by spawning the checking of each interface
off into separate threads.
throws: Exception - if the test can't use at least one of the local machine'sinterfaces to make an outgoing connection to the server. |
testNonStandardConnectionCollation | public void testNonStandardConnectionCollation() throws Exception(Code) | | Tests the ability to set the connection collation via properties.
throws: Exception - if an error occurs or the test fails |
testSavepoint | public void testSavepoint() throws Exception(Code) | | Tests the savepoint functionality in MySQL.
throws: Exception - if an error occurs. |
testServerConfigurationCache | public void testServerConfigurationCache() throws Exception(Code) | | |
testSessionVariables | public void testSessionVariables() throws Exception(Code) | | |
testSetProfileSql | public void testSetProfileSql() throws Exception(Code) | | Tests setting profileSql on/off in the span of one connection.
throws: Exception - if an error occurs. |
testUsageAdvisorTooLargeResultSet | public void testUsageAdvisorTooLargeResultSet() throws Exception(Code) | | |
testUseCompress | public void testUseCompress() throws Exception(Code) | | Tests if useCompress works.
throws: Exception - if the test fails |
testUseLocalSessionState | public void testUseLocalSessionState() throws Exception(Code) | | Tests whether or not the configuration 'useLocalSessionState' actually
prevents non-needed 'set autocommit=', 'set session transaction isolation
...' and 'show variables like tx_isolation' queries.
throws: Exception - if the test fails. |
testUseLocalSessionStateRollback | public void testUseLocalSessionStateRollback() throws Exception(Code) | | |
testUseOldUTF8Behavior | public void testUseOldUTF8Behavior() throws Exception(Code) | | |
Methods inherited from testsuite.BaseTestCase | protected void cleanupTempFiles(File exampleTempFile, String tempfilePrefix)(Code)(Java Doc) protected void closeMemberJDBCResources()(Code)(Java Doc) protected void createFunction(String functionName, String functionDefn) throws SQLException(Code)(Java Doc) protected void createProcedure(String procedureName, String procedureDefn) throws SQLException(Code)(Java Doc) protected void createSchemaObject(String objectType, String objectName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void createTable(String tableName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void dropFunction(String functionName) throws SQLException(Code)(Java Doc) protected void dropProcedure(String procedureName) throws SQLException(Code)(Java Doc) protected void dropSchemaObject(String objectType, String objectName) throws SQLException(Code)(Java Doc) protected void dropTable(String tableName) throws SQLException(Code)(Java Doc) protected Connection getAdminConnection() throws SQLException(Code)(Java Doc) protected Connection getAdminConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, Properties props) throws SQLException(Code)(Java Doc) protected int getInstanceNumber()(Code)(Java Doc) protected String getMysqlVariable(Connection c, String variableName) throws SQLException(Code)(Java Doc) protected String getMysqlVariable(String variableName) throws SQLException(Code)(Java Doc) protected Properties getPropertiesFromTestsuiteUrl() throws SQLException(Code)(Java Doc) protected int getRowCount(String tableName) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(Connection c, int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleValue(String tableName, String columnName, String whereClause) throws SQLException(Code)(Java Doc) protected Object getSingleValueWithQuery(String query) throws SQLException(Code)(Java Doc) protected boolean isAdminConnectionConfigured()(Code)(Java Doc) protected boolean isClassAvailable(String classname)(Code)(Java Doc) protected boolean isRunningOnJRockit()(Code)(Java Doc) protected boolean isRunningOnJdk131()(Code)(Java Doc) protected boolean isServerRunningOnWindows() throws SQLException(Code)(Java Doc) public void logDebug(String message)(Code)(Java Doc) protected File newTempBinaryFile(String name, long size) throws IOException(Code)(Java Doc) protected String randomString()(Code)(Java Doc) final protected boolean runLongTests()(Code)(Java Doc) protected boolean runMultiHostTests()(Code)(Java Doc) protected boolean runTestIfSysPropDefined(String propName)(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor) throws SQLException(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)(Java Doc)
|
|
|
|