public class XATest extends BaseTestCase
BaseTestCase.MockConnectionConfiguration| Modifier and Type | Field and Description |
|---|---|
(package private) MysqlXADataSource |
xaDs |
conn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
XATest() |
| Modifier and Type | Method and Description |
|---|---|
private javax.transaction.xa.Xid |
createXid() |
private javax.transaction.xa.Xid |
createXid(javax.transaction.xa.Xid xidToBranch) |
protected javax.sql.XAConnection |
getXAConnection() |
void |
setup() |
void |
testCoordination()
Tests that simple distributed transaction processing works as expected.
|
void |
testLocalTransaction()
Tests operation of local transactions on XAConnections when global transactions are in or not in progress (follows from BUG#17401).
|
void |
testRecover()
Tests that XA RECOVER works as expected.
|
void |
testSuspendableTx() |
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimumMysqlXADataSource xaDs
@BeforeEach public void setup()
@Test
public void testCoordination()
throws java.lang.Exception
java.lang.Exceptionprotected javax.sql.XAConnection getXAConnection()
throws java.lang.Exception
java.lang.Exception@Test
public void testRecover()
throws java.lang.Exception
java.lang.Exception@Test
public void testLocalTransaction()
throws java.lang.Exception
java.lang.Exception@Test
public void testSuspendableTx()
throws java.lang.Exception
java.lang.Exceptionprivate javax.transaction.xa.Xid createXid()
throws java.io.IOException
java.io.IOExceptionprivate javax.transaction.xa.Xid createXid(javax.transaction.xa.Xid xidToBranch)
throws java.io.IOException
java.io.IOException