| |
|
| net.sourceforge.jtds.test.TestBase net.sourceforge.jtds.test.DatabaseTestCase net.sourceforge.jtds.test.XaTest
XaTest | public class XaTest extends DatabaseTestCase (Code) | | Test suite for XA Distributed Transactions. These tests are derived from
examples found in the following article at
DevX.
version: $Id: XaTest.java,v 1.5 2004/12/03 16:52:09 alin_sinpalean Exp $ |
Method Summary | |
public XADataSource | getDataSource() Obtain an XADataSource. | public static void | main(String[] args) | public void | testLocalTran() Demonstrate interleaving local transactions and distributed
transactions. | public void | testXAJoinTran() Test to demonstrate the use of the XA_JOIN command. | public void | testXARecover() Test to demonstrate the use of the XA_RECOVER command. | public void | testXaCommit() Test to demonstrate the XA_COMMIT function. | public void | testXaOnePhaseCommit() Test to demonstrate the single phase XA_COMMIT function. | public void | testXaRollback() Test to demonstrate the use of the XA_ROLLBACK command. |
testLocalTran | public void testLocalTran() throws Exception(Code) | | Demonstrate interleaving local transactions and distributed
transactions.
throws: Exception - if an error condition occurs |
testXAJoinTran | public void testXAJoinTran() throws Exception(Code) | | Test to demonstrate the use of the XA_JOIN command.
throws: Exception - if an error condition occurs |
testXARecover | public void testXARecover() throws Exception(Code) | | Test to demonstrate the use of the XA_RECOVER command.
throws: Exception - if an error condition occurs |
testXaCommit | public void testXaCommit() throws Exception(Code) | | Test to demonstrate the XA_COMMIT function.
throws: Exception - if an error condition occurs |
testXaOnePhaseCommit | public void testXaOnePhaseCommit() throws Exception(Code) | | Test to demonstrate the single phase XA_COMMIT function.
throws: Exception - if an error condition occurs |
testXaRollback | public void testXaRollback() throws Exception(Code) | | Test to demonstrate the use of the XA_ROLLBACK command.
throws: Exception - if an error condition occurs |
|
|
|