org.objectweb.jonas.jtests.clients.jms
Class F_RollbackMDB

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.jms.F_RollbackMDB
All Implemented Interfaces:
junit.framework.Test

public class F_RollbackMDB
extends JTestCase


Field Summary
protected static SenderHome home
           
 
Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
F_RollbackMDB(java.lang.String name)
           
 
Method Summary
 SenderHome getHome()
           
static void main(java.lang.String[] args)
           
protected  void setUp()
          init environment: - load beans - create/init database for entities.
static junit.framework.Test suite()
          Run all the tests
 void testRollbackOnlyOnQueue3()
          Test that it's possible to set rollback only in a message driven 2 MDB are listening queue3, but 1 of them rollback all messages.
 void testRollbackSendOnQueue1()
          send a message on a queue in a transaction rolled back MDB transacted.
 void testRollbackSendOnTopic1()
          send a message on a topic in a transaction rolled back
 
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase
debug, getDBEnv, random, sleep, tearDown, testEmpty, unloadBeans, useBeans
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, 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

home

protected static SenderHome home
Constructor Detail

F_RollbackMDB

public F_RollbackMDB(java.lang.String name)
Method Detail

getHome

public SenderHome getHome()

setUp

protected void setUp()
init environment: - load beans - create/init database for entities.
Overrides:
setUp in class JTestCase

testRollbackSendOnTopic1

public void testRollbackSendOnTopic1()
                              throws java.lang.Exception
send a message on a topic in a transaction rolled back

testRollbackSendOnQueue1

public void testRollbackSendOnQueue1()
                              throws java.lang.Exception
send a message on a queue in a transaction rolled back MDB transacted.

testRollbackOnlyOnQueue3

public void testRollbackOnlyOnQueue3()
                              throws java.lang.Exception
Test that it's possible to set rollback only in a message driven 2 MDB are listening queue3, but 1 of them rollback all messages. So, we should receive all messages by the commiting MDB.

suite

public static junit.framework.Test suite()
Run all the tests

main

public static void main(java.lang.String[] args)