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_VALUE
DEFAULT_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, prepareStatement
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, tearDown, 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, setUp, toString
public 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.SQLException
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception
public void testCreateBlob() throws java.sql.SQLException, java.io.FileNotFoundException, java.io.IOException, java.lang.Exception
SQLException,
- FileNotFoundException, Exception if error occursjava.sql.SQLException
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception
public void testConnectionIsValid() throws java.sql.SQLException, java.lang.Exception
SQLException,
- Exception if error occursjava.sql.SQLException
java.lang.Exception
public void testAbortPhysical() throws java.lang.Exception
java.lang.Exception
public void testAbortPooled() throws java.lang.Exception
java.lang.Exception
private javax.sql.PooledConnection getPooledConnection(javax.sql.ConnectionPoolDataSource cpDs, java.lang.String userName) throws java.lang.Exception
java.lang.Exception
public void testAbortXA() throws java.lang.Exception
java.lang.Exception
private javax.sql.XAConnection getXAConnection(javax.sql.XADataSource xads, java.lang.String userName) throws java.lang.Exception
java.lang.Exception
public void abortVetter(java.sql.Connection conn0, java.sql.Connection conn1, java.sql.Connection conn2) throws java.lang.Exception
java.lang.Exception
public void testGetSetSchema() throws java.lang.Exception
java.lang.Exception
public void testGetSetNetworkTimeout() throws java.lang.Exception
java.lang.Exception
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.