public class ConnectionMethodsTest extends Wrapper41Test
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionMethodsTest.DirectExecutor
An Executor which runs in the current thread.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLOSED_CONNECTION |
(package private) java.io.FileInputStream |
is |
BINARY_VALUE, TIME_VALUE, TIMESTAMP_VALUEDEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
ConnectionMethodsTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortVetter(java.sql.Connection conn0,
java.sql.Connection conn1,
java.sql.Connection conn2)
Test the JDBC 4.1 Connection.abort(Executor) method.
|
static junit.framework.Test |
baseSuite(java.lang.String name) |
private javax.sql.PooledConnection |
getPooledConnection(javax.sql.ConnectionPoolDataSource cpDs,
java.lang.String userName) |
private javax.sql.XAConnection |
getXAConnection(javax.sql.XADataSource xads,
java.lang.String userName) |
static junit.framework.Test |
suite() |
void |
testAbortPhysical()
Test the JDBC 4.1 Connection.abort(Executor) method on physical connections.
|
void |
testAbortPooled()
Test the JDBC 4.1 Connection.abort(Executor) method on pooled connections.
|
void |
testAbortXA()
Test the JDBC 4.1 Connection.abort(Executor) method on XA connections.
|
void |
testConnectionIsValid()
Test the Connection.isValid method
|
void |
testCreateBlob()
Test the createBlob method implementation in the Connection interface
|
void |
testCreateClob()
Test the createClob method implementation in the Connection interface
|
void |
testGetSetNetworkTimeout()
Test the JDBC 4.1 Connection.getNetworkTimeout() and setNetworkTimeout() methods.
|
void |
testGetSetSchema()
Test the JDBC 4.1 Connection.getSchema() and setSchema() methods.
|
examineJDBC4_1extensions, prepareCall, prepareStatementassertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, 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, setUp, toStringpublic static final java.lang.String CLOSED_CONNECTION
java.io.FileInputStream is
public static junit.framework.Test suite()
public static junit.framework.Test baseSuite(java.lang.String name)
public void testCreateClob()
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException,
java.lang.Exception
SQLException, - FileNotFoundException, Exception if error occursjava.sql.SQLExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionjava.lang.Exceptionpublic void testCreateBlob()
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException,
java.lang.Exception
SQLException, - FileNotFoundException, Exception if error occursjava.sql.SQLExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionjava.lang.Exceptionpublic void testConnectionIsValid()
throws java.sql.SQLException,
java.lang.Exception
SQLException, - Exception if error occursjava.sql.SQLExceptionjava.lang.Exceptionpublic void testAbortPhysical()
throws java.lang.Exception
java.lang.Exceptionpublic void testAbortPooled()
throws java.lang.Exception
java.lang.Exceptionprivate javax.sql.PooledConnection getPooledConnection(javax.sql.ConnectionPoolDataSource cpDs,
java.lang.String userName)
throws java.lang.Exception
java.lang.Exceptionpublic void testAbortXA()
throws java.lang.Exception
java.lang.Exceptionprivate javax.sql.XAConnection getXAConnection(javax.sql.XADataSource xads,
java.lang.String userName)
throws java.lang.Exception
java.lang.Exceptionpublic void abortVetter(java.sql.Connection conn0,
java.sql.Connection conn1,
java.sql.Connection conn2)
throws java.lang.Exception
java.lang.Exceptionpublic void testGetSetSchema()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetSetNetworkTimeout()
throws java.lang.Exception
java.lang.ExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.