public class XA40Test extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private java.sql.Connection |
con
Default Connection used by the tests.
|
private javax.sql.XAConnection |
xac
Default XAConnection used by the tests.
|
private javax.sql.XADataSource |
xads
Default XADataSource used by the tests.
|
private javax.transaction.xa.XAResource |
xar
Default XAResource used by the tests.
|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
XA40Test(java.lang.String name)
Create a new test with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Create default XADataSource, XAResource, XAConnection, and
Connection for the tests.
|
static junit.framework.Test |
suite()
Create test suite for XA40Test.
|
protected void |
tearDown()
Close default connection and XAConnection if necessary.
|
void |
test_registerOutParameter_jdbc4_2()
Test the JDBC 4.2 additions to brokered CallableStatements.
|
void |
testCallableStatementPoolable()
Tests isPoolable() and setPoolable(boolean) and default
poolability for CallableStatement (which for XA is actually a
BrokeredCallableStatement40 in embedded).
|
void |
testLargeUpdate_jdbc4_2()
Test the JDBC 4.2 statement additions to brokered and logical statements.
|
void |
testPreparedStatementPoolable()
Tests isPoolable() and setPoolable(boolean) for
PreparedStatement, (which for XA is actually a
BrokeredPreparedStatement40 in embedded).
|
void |
testStatementPoolable()
Tests isPoolable(), setPoolable(boolean) and default
poolability for Statement, (which for XA is actually a
BrokeredStatement40 in embedded).
|
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, 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, toString
private javax.sql.XADataSource xads
private javax.sql.XAConnection xac
private javax.transaction.xa.XAResource xar
private java.sql.Connection con
public XA40Test(java.lang.String name)
name
- name of the test.public void setUp() throws java.sql.SQLException
setUp
in class junit.framework.TestCase
java.sql.SQLException
- if a database access exception occurs.protected void tearDown() throws java.lang.Exception
tearDown
in class BaseJDBCTestCase
java.lang.Exception
- if an exception occurs.public void testStatementPoolable() throws java.sql.SQLException
java.sql.SQLException
- if a database access exception occurs.public void testPreparedStatementPoolable() throws java.sql.SQLException
java.sql.SQLException
- if a database access exception occurs.public void testCallableStatementPoolable() throws java.sql.SQLException
java.sql.SQLException
- if a database access exception occurs.public void testLargeUpdate_jdbc4_2() throws java.lang.Exception
Test the JDBC 4.2 statement additions to brokered and logical statements.
java.lang.Exception
public void test_registerOutParameter_jdbc4_2() throws java.lang.Exception
Test the JDBC 4.2 additions to brokered CallableStatements.
java.lang.Exception
public static junit.framework.Test suite()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.