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, 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, 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, toStringprivate 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.TestCasejava.sql.SQLException - if a database access exception occurs.protected void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestCasejava.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.Exceptionpublic void test_registerOutParameter_jdbc4_2()
throws java.lang.Exception
Test the JDBC 4.2 additions to brokered CallableStatements.
java.lang.Exceptionpublic static junit.framework.Test suite()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.