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

Quick Search    Search Deep

org.activemq
Class JmsTopicSendReceiveWithTwoConnectionsTest  view JmsTopicSendReceiveWithTwoConnectionsTest download JmsTopicSendReceiveWithTwoConnectionsTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.TestSupport
              extended byorg.activemq.JmsSendReceiveTestSupport
                  extended byorg.activemq.JmsTopicSendReceiveWithTwoConnectionsTest
All Implemented Interfaces:
javax.jms.MessageListener, junit.framework.Test

public class JmsTopicSendReceiveWithTwoConnectionsTest
extends JmsSendReceiveTestSupport

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  javax.jms.Connection receiveConnection
           
protected  javax.jms.Session receiveSession
           
protected  javax.jms.Connection sendConnection
           
 
Fields inherited from class org.activemq.JmsSendReceiveTestSupport
consumer, consumerDestination, data, deliveryMode, durable, lock, messageCount, messages, producer, producerDestination, session, topic, verbose
 
Fields inherited from class org.activemq.TestSupport
connectionFactory, log
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JmsTopicSendReceiveWithTwoConnectionsTest()
           
 
Method Summary
protected  ActiveMQConnectionFactory createConnectionFactory()
           
protected  javax.jms.Connection createReceiveConnection()
           
protected  javax.jms.Connection createSendConnection()
           
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.
 
Methods inherited from class org.activemq.JmsSendReceiveTestSupport
assertMessagesAreReceived, assertMessagesReceivedAreValid, consumeMessage, createConcurrentList, onMessage, testSendReceive, waitForMessagesToBeDelivered
 
Methods inherited from class org.activemq.TestSupport
assertTextMessagesEqual, createConnection, 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

sendConnection

protected javax.jms.Connection sendConnection

receiveConnection

protected javax.jms.Connection receiveConnection

receiveSession

protected javax.jms.Session receiveSession
Constructor Detail

JmsTopicSendReceiveWithTwoConnectionsTest

public JmsTopicSendReceiveWithTwoConnectionsTest()
Method Detail

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.

Overrides:
setUp in class JmsSendReceiveTestSupport

createReceiveConnection

protected javax.jms.Connection createReceiveConnection()
                                                throws java.lang.Exception

createSendConnection

protected javax.jms.Connection createSendConnection()
                                             throws java.lang.Exception

createConnectionFactory

protected ActiveMQConnectionFactory createConnectionFactory()
                                                     throws java.lang.Exception
Overrides:
createConnectionFactory in class TestSupport

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.