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

Quick Search    Search Deep

org.activemq
Class JmsTransactionTestSupport  view JmsTransactionTestSupport download JmsTransactionTestSupport.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.test.TestSupport
              extended byorg.activemq.JmsTransactionTestSupport
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JmsQueueTransactionTest, JmsTopicTransactionTest

public abstract class JmsTransactionTestSupport
extends org.activemq.test.TestSupport

Version:
$Revision: 1.2 $

Field Summary
protected  javax.jms.Connection connection
           
protected  javax.jms.ConnectionFactory connectionFactory
           
protected  javax.jms.MessageConsumer consumer
           
protected  javax.jms.Destination destination
           
protected  javax.jms.MessageProducer producer
           
protected  org.activemq.test.JmsResourceProvider resourceProvider
           
protected  javax.jms.Session session
           
 
Fields inherited from class org.activemq.test.TestSupport
log, topic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JmsTransactionTestSupport()
           
JmsTransactionTestSupport(java.lang.String name)
           
 
Method Summary
protected abstract  org.activemq.test.JmsResourceProvider getJmsResourceProvider()
           
protected  void reconnect()
           
protected  void setPrefetchToOne()
           
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 testCloseConsumerBeforeCommit()
           
 void testReceiveRollback()
           
 void testReceiveRollbackWithPrefetchOfOne()
           
 void testReceiveTwoThenRollback()
           
 void testReceiveTwoThenRollbackManyTimes()
           
 void testSendReceiveTransactedBatches()
           
 void testSendRollback()
           
 void testSendRollbackWithPrefetchOfOne()
           
 
Methods inherited from class org.activemq.test.TestSupport
assertEquals, assertEquals, assertEquals, assertTextMessageEqual, assertTextMessagesEqual, assertTextMessagesEqual, createConnection, createConnectionFactory, createDestination, createMessage, getConnectionFactory, getConsumerSubject, getProducerSubject, getSubject
 
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

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

resourceProvider

protected org.activemq.test.JmsResourceProvider resourceProvider

destination

protected javax.jms.Destination destination
Constructor Detail

JmsTransactionTestSupport

public JmsTransactionTestSupport()

JmsTransactionTestSupport

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

testSendReceiveTransactedBatches

public void testSendReceiveTransactedBatches()
                                      throws java.lang.Exception

testSendRollback

public void testSendRollback()
                      throws java.lang.Exception

testReceiveRollback

public void testReceiveRollback()
                         throws java.lang.Exception

testReceiveTwoThenRollback

public void testReceiveTwoThenRollback()
                                throws java.lang.Exception

testReceiveTwoThenRollbackManyTimes

public void testReceiveTwoThenRollbackManyTimes()
                                         throws java.lang.Exception

testSendRollbackWithPrefetchOfOne

public void testSendRollbackWithPrefetchOfOne()
                                       throws java.lang.Exception

testReceiveRollbackWithPrefetchOfOne

public void testReceiveRollbackWithPrefetchOfOne()
                                          throws java.lang.Exception

testCloseConsumerBeforeCommit

public void testCloseConsumerBeforeCommit()
                                   throws java.lang.Exception

getJmsResourceProvider

protected abstract org.activemq.test.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.


reconnect

protected void reconnect()
                  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.


setPrefetchToOne

protected void setPrefetchToOne()