org.objectweb.jotm.jtests.conform
Class JonasTMDistributedTestCase

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

public class JonasTMDistributedTestCase
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
JonasTMDistributedTestCase(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 test1PCSuspendResume()
          testing sucessful one phase suspend resume
 void test2PCCommit()
           
 void test2PCCommitFailure()
           
 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

JonasTMDistributedTestCase

public JonasTMDistributedTestCase(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

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

public void test2PCCommitFailure()
                          throws Exception
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