Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.test
Class JmsXATransactionTestSupport  view JmsXATransactionTestSupport download JmsXATransactionTestSupport.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.TestSupport
              extended byorg.activemq.test.JmsXATransactionTestSupport
All Implemented Interfaces:
junit.framework.Test

public abstract class JmsXATransactionTestSupport
extends org.activemq.TestSupport

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  javax.jms.Connection connection
           
protected  javax.jms.ConnectionFactory connectionFactory
           
protected  javax.jms.MessageConsumer consumer
           
private  javax.jms.Destination destination
           
(package private) static boolean firstRun
           
protected  javax.jms.MessageProducer producer
           
private  javax.jms.MessageProducer producer2
           
private  JmsResourceProvider provider
           
protected  javax.jms.Session session
           
 
Fields inherited from class org.activemq.TestSupport
log, topic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JmsXATransactionTestSupport()
           
JmsXATransactionTestSupport(java.lang.String name)
           
 
Method Summary
private  void closeConnection()
           
protected abstract  JmsResourceProvider getJmsResourceProvider()
           
protected  void openConnection()
           
protected  void restart()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testSendOutsideXATransaction()
           
 void testSendPrepareRecoverRollback()
           
 void testSendRollback()
           
 void testXAWith2Sessions()
           
 
Methods inherited from class org.activemq.TestSupport
assertTextMessagesEqual, createConnection, createConnectionFactory, createDestination, createMessage, getConnectionFactory, getConsumerSubject, getProducerSubject, getSubject, recursiveDelete, removeMessageStore
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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

firstRun

static boolean firstRun

connectionFactory

protected javax.jms.ConnectionFactory connectionFactory

connection

protected javax.jms.Connection connection

session

protected javax.jms.Session session

consumer

protected javax.jms.MessageConsumer consumer

producer

protected javax.jms.MessageProducer producer

provider

private JmsResourceProvider provider

producer2

private javax.jms.MessageProducer producer2

destination

private javax.jms.Destination destination
Constructor Detail

JmsXATransactionTestSupport

public JmsXATransactionTestSupport()

JmsXATransactionTestSupport

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

testSendOutsideXATransaction

public void testSendOutsideXATransaction()
                                  throws java.lang.Exception

testSendRollback

public void testSendRollback()
                      throws java.lang.Exception

testSendPrepareRecoverRollback

public void testSendPrepareRecoverRollback()
                                    throws java.lang.Exception

testXAWith2Sessions

public void testXAWith2Sessions()
                         throws java.lang.Exception

getJmsResourceProvider

protected abstract JmsResourceProvider getJmsResourceProvider()

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


restart

protected void restart()
                throws javax.jms.JMSException

openConnection

protected void openConnection()
                       throws javax.jms.JMSException

tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


closeConnection

private void closeConnection()
                      throws javax.jms.JMSException