org.objectweb.jotm.jtests.conform
Class DistributedTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jotm.jtests.conform.DistributedTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ClientTestCase, RemoteTestCase

public class DistributedTestCase
extends junit.framework.TestCase

A test case of the jonas transaction manager in a distributed configuration: The transaction factory is local but calls are made from both the JVM and a remote VM client (that simulates another server for example). Created on Oct 15, 2001

Author:
Christophe Ney

Field Summary
static TransactionManager tm
           
 
Constructor Summary
DistributedTestCase(String s)
           
 
Method Summary
static void main(String[] args)
          easy test runner bootstrap
static junit.framework.Test suite()
          run the test suite with a remote transaction factory
 void test1PCCommit()
          sucessful one phase commit on a remote resource
 void test1PCCommitFailure()
          unsucessful one phase commit on a remote resource
 void test1PCCommitTimeout()
          one phase commit on a remote resource with transaction timeout
 void test1PCCommitTimeoutFailure()
          one phase commit on a remote resource with transaction timeout
 void test1PCRollback()
           
 void test1PCSetRollbackOnly()
           
 void test1PCSuspendResume()
          testing sucessful one phase suspend resume
 void test2PCCommit()
           
 void test2PCCommitFailure_1()
          2 XAresources are enlisted in the transaction: one on the client side which succeeds on commit one on the client side which fails on commit * @throws Exception
 void test2PCCommitFailure_2()
          2 XAresources are enlisted in the transaction: one on the client side which fails on commit one on the client side which succeeds on commit
 void test2PCCommitTimeout()
           
 void test2PCCommitTimeoutFailure()
           
 void test2PCRollback()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tm

public static TransactionManager tm
Constructor Detail

DistributedTestCase

public DistributedTestCase(String s)
Method Detail

test1PCCommit

public void test1PCCommit()
                   throws Exception
sucessful one phase commit on a remote resource

Exception

test1PCCommitFailure

public void test1PCCommitFailure()
                          throws Exception
unsucessful one phase commit on a remote resource

Exception

test1PCCommitTimeout

public void test1PCCommitTimeout()
                          throws Exception
one phase commit on a remote resource with transaction timeout

Exception

test1PCCommitTimeoutFailure

public void test1PCCommitTimeoutFailure()
                                 throws Exception
one phase commit on a remote resource with transaction timeout

Exception

test1PCRollback

public void test1PCRollback()
                     throws Exception
Exception

test1PCSetRollbackOnly

public void test1PCSetRollbackOnly()
                            throws Exception
Exception

test1PCSuspendResume

public void test1PCSuspendResume()
                          throws Exception
testing sucessful one phase suspend resume

Exception

test2PCCommit

public void test2PCCommit()
                   throws Exception
Exception

test2PCRollback

public void test2PCRollback()
                     throws Exception
Exception

test2PCCommitFailure_1

public void test2PCCommitFailure_1()
                            throws Exception
2 XAresources are enlisted in the transaction:

test2PCCommitFailure_2

public void test2PCCommitFailure_2()
                            throws Exception
2 XAresources are enlisted in the transaction:

Throws:
Exception

test2PCCommitTimeout

public void test2PCCommitTimeout()
                          throws Exception
Exception

test2PCCommitTimeoutFailure

public void test2PCCommitTimeoutFailure()
                                 throws Exception
Exception

suite

public static junit.framework.Test suite()
run the test suite with a remote transaction factory


main

public static void main(String[] args)
easy test runner bootstrap