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

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

public class F_BasicMDB
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_BasicMDB(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 testBasicSendOnQueue1()
          Basic test: Send 1 message on a queue No tx, MDB transacted.
 void testBasicSendOnQueue1Tx()
          Basic test: Send 1 message on a queue tx, MDB transacted.
 void testBasicSendOnQueue2()
          Basic test: Send 1 message on a queue No tx, MDB not transacted.
 void testBasicSendOnQueue2Tx()
          Basic test: Send 1 message on a queue tx, MDB not transacted.
 void testBasicSendOnTopic1()
          Basic test: Send 1 message on a topic 2 MDB are reading the topic.
 void testBasicSendOnTopic1Tx()
          Basic test: Send 1 message on a topic 2 MDB are reading the topic. tx.
 void testBasicSendOnTopic2()
          Basic test: Send 1 message on a topic Durable 2 MDB are reading the topic.
 void testCommitSendOnQueue1()
          Basic test: send a message on a queue in a transaction committed MDB transacted.
 void testCommitSendOnQueue2()
          Basic test: send a message on a queue in a transaction committed MDB not transacted.
 void testCommitSendOnTopic1()
          Basic test: send a message on a topic in a transaction committed
 void testMultipleSendOnQueue1()
          Basic test: Send n messages on a queue No tx, MDB transacted.
 void testMultipleSendOnQueue1Tx()
          Basic test: Send nb messages on a queue tx, MDB transacted.
 void testMultipleSendOnTopic1()
          Basic test: Send nb messages on a topic 2 MDB are reading the topic.
 void testMutipleSendOnTopic1Tx()
          Basic test: Send n messages on a topic 2 MDB are reading the topic. tx.
 void testNCommitSendOnTopic1()
          Basic test: send n message on a topic in a transaction committed
 void testRollbackSendOnQueue2()
          Basic test: send a message on a queue in a transaction rolled back MDB not transacted.
 
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_BasicMDB

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

testBasicSendOnTopic1

public void testBasicSendOnTopic1()
                           throws java.lang.Exception
Basic test: Send 1 message on a topic 2 MDB are reading the topic. No tx.

testBasicSendOnTopic2

public void testBasicSendOnTopic2()
                           throws java.lang.Exception
Basic test: Send 1 message on a topic Durable 2 MDB are reading the topic. No tx.

testMultipleSendOnTopic1

public void testMultipleSendOnTopic1()
                              throws java.lang.Exception
Basic test: Send nb messages on a topic 2 MDB are reading the topic. No tx.

testBasicSendOnTopic1Tx

public void testBasicSendOnTopic1Tx()
                             throws java.lang.Exception
Basic test: Send 1 message on a topic 2 MDB are reading the topic. tx.

testMutipleSendOnTopic1Tx

public void testMutipleSendOnTopic1Tx()
                               throws java.lang.Exception
Basic test: Send n messages on a topic 2 MDB are reading the topic. tx.

testCommitSendOnTopic1

public void testCommitSendOnTopic1()
                            throws java.lang.Exception
Basic test: send a message on a topic in a transaction committed

testNCommitSendOnTopic1

public void testNCommitSendOnTopic1()
                             throws java.lang.Exception
Basic test: send n message on a topic in a transaction committed

testBasicSendOnQueue1

public void testBasicSendOnQueue1()
                           throws java.lang.Exception
Basic test: Send 1 message on a queue No tx, MDB transacted.

testMultipleSendOnQueue1

public void testMultipleSendOnQueue1()
                              throws java.lang.Exception
Basic test: Send n messages on a queue No tx, MDB transacted.

testBasicSendOnQueue1Tx

public void testBasicSendOnQueue1Tx()
                             throws java.lang.Exception
Basic test: Send 1 message on a queue tx, MDB transacted.

testMultipleSendOnQueue1Tx

public void testMultipleSendOnQueue1Tx()
                                throws java.lang.Exception
Basic test: Send nb messages on a queue tx, MDB transacted.

testBasicSendOnQueue2

public void testBasicSendOnQueue2()
                           throws java.lang.Exception
Basic test: Send 1 message on a queue No tx, MDB not transacted.

testBasicSendOnQueue2Tx

public void testBasicSendOnQueue2Tx()
                             throws java.lang.Exception
Basic test: Send 1 message on a queue tx, MDB not transacted.

testRollbackSendOnQueue2

public void testRollbackSendOnQueue2()
                              throws java.lang.Exception
Basic test: send a message on a queue in a transaction rolled back MDB not transacted.

testCommitSendOnQueue1

public void testCommitSendOnQueue1()
                            throws java.lang.Exception
Basic test: send a message on a queue in a transaction committed MDB transacted.

testCommitSendOnQueue2

public void testCommitSendOnQueue2()
                            throws java.lang.Exception
Basic test: send a message on a queue in a transaction committed MDB not transacted.

suite

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

main

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