org.objectweb.jotm.jtests.conform
Class LocalTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jotm.jtests.conform.LocalTestCase
All Implemented Interfaces:
junit.framework.Test

public class LocalTestCase
extends junit.framework.TestCase

A test case of the jonas transaction manager in a local configuration: The transaction factory is local and all calls are made from the JVM. Created on Oct 15, 2001

Author:
Christophe Ney

Field Summary
static TransactionManager tm
           
 
Constructor Summary
LocalTestCase(String s)
           
 
Method Summary
static void main(String[] args)
          easy test runner bootstrap
static junit.framework.Test suite()
          run the test suite within a local environment
 void test1PCCommit()
          testing sucessful one phase commit
 void test1PCCommitFailure()
          testing unsucessful one phase commit
 void test1PCCommitTimeout()
          testing one phase commit timeout
 void test1PCCommitTimeoutFailure()
          testing one phase commit timeout failure
 void test1PCRollback()
          testing sucessful one phase rollback
 void test1PCSuspendResume()
          testing sucessful one phase suspend resume
 void test2PCCommit()
          testing sucessful two phase commit
 void test2PCCommitFailure()
          testing unsucessful two phase commit
 void test2PCCommitTimeout()
          testing two phase commit timeout
 void test2PCRollback()
          testing sucessful two phase rollback
 void test2PCSuspendResume()
          testing sucessful two phase suspend resume
 void testEmptyCommit()
          testing sucessful one phase commit
 void testEmptyCommitTimeout()
          testing one phase commit timeout
 void testEmptyCommitTimeoutFailure()
          testing one phase commit timeout failure
 void testEmptyRollback()
          testing sucessful one phase rollback
 void testEmptySuspendResume()
          testing sucessful one phase suspend resume
 void testTransactionPropagation()
          testing sucessful two phase commit with transaction context propagation between 2 threads in the same VM.
 
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

LocalTestCase

public LocalTestCase(String s)
Method Detail

testEmptyCommit

public void testEmptyCommit()
                     throws Exception
testing sucessful one phase commit

Exception

testEmptyCommitTimeout

public void testEmptyCommitTimeout()
                            throws Exception
testing one phase commit timeout

Exception

testEmptyCommitTimeoutFailure

public void testEmptyCommitTimeoutFailure()
                                   throws Exception
testing one phase commit timeout failure

Exception

testEmptyRollback

public void testEmptyRollback()
                       throws Exception
testing sucessful one phase rollback

Exception

testEmptySuspendResume

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

Exception

test1PCCommit

public void test1PCCommit()
                   throws Exception
testing sucessful one phase commit

Exception

test1PCCommitFailure

public void test1PCCommitFailure()
                          throws Exception
testing unsucessful one phase commit

Exception

test1PCCommitTimeout

public void test1PCCommitTimeout()
                          throws Exception
testing one phase commit timeout

Exception

test1PCCommitTimeoutFailure

public void test1PCCommitTimeoutFailure()
                                 throws Exception
testing one phase commit timeout failure

Exception

test1PCRollback

public void test1PCRollback()
                     throws Exception
testing sucessful one phase rollback

Exception

test1PCSuspendResume

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

Exception

test2PCCommit

public void test2PCCommit()
                   throws Exception
testing sucessful two phase commit

Exception

test2PCRollback

public void test2PCRollback()
                     throws Exception
testing sucessful two phase rollback

Exception

test2PCSuspendResume

public void test2PCSuspendResume()
                          throws Exception
testing sucessful two phase suspend resume

Exception

test2PCCommitFailure

public void test2PCCommitFailure()
                          throws Exception
testing unsucessful two phase commit

Exception

test2PCCommitTimeout

public void test2PCCommitTimeout()
                          throws Exception
testing two phase commit timeout

Exception

testTransactionPropagation

public void testTransactionPropagation()
                                throws Exception
testing sucessful two phase commit with transaction context propagation between 2 threads in the same VM. This test use the explicite context propagation. For Implicit propagation the tread have to discuss via rmi This test isn't madatory for Transaction Manager

Exception

suite

public static junit.framework.Test suite()
run the test suite within a local environment


main

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