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

Quick Search    Search Deep

org.activemq.usecases
Class TwoBrokerTopicSendReceiveTest  view TwoBrokerTopicSendReceiveTest download TwoBrokerTopicSendReceiveTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.test.TestSupport
              extended byorg.activemq.test.JmsSendReceiveTestSupport
                  extended byorg.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest
                      extended byorg.activemq.usecases.TwoBrokerTopicSendReceiveTest
All Implemented Interfaces:
javax.jms.MessageListener, junit.framework.Test
Direct Known Subclasses:
TwoBrokerQueueSendReceiveTest, TwoBrokerTopicSendReceiveUsingHttpTest, TwoBrokerTopicSendReceiveUsingJavaConfigurationTest, TwoBrokerTopicSendReceiveUsingTcpTest, TwoMulticastDiscoveryBrokerTopicSendReceiveTest, TwoZeroconfDiscoveryBrokerTopicSendReceiveTest

public class TwoBrokerTopicSendReceiveTest
extends org.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  org.activemq.ActiveMQConnectionFactory receiveFactory
           
protected  org.activemq.ActiveMQConnectionFactory sendFactory
           
 
Fields inherited from class org.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest
receiveConnection, receiveSession, sendConnection
 
Fields inherited from class org.activemq.test.JmsSendReceiveTestSupport
consumer, consumerDestination, consumeSession, data, deliveryMode, doneLatch, durable, messageCount, messages, producer, producerDestination, session, topic, useSeparateSession, verbose
 
Fields inherited from class org.activemq.test.TestSupport
connectionFactory, log
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TwoBrokerTopicSendReceiveTest()
           
 
Method Summary
protected  org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.lang.String config, java.lang.String brokerName, java.lang.String connectUrl)
           
protected  javax.jms.Connection createReceiveConnection()
           
protected  org.activemq.ActiveMQConnectionFactory createReceiverConnectionFactory()
           
protected  javax.jms.Connection createSendConnection()
           
protected  org.activemq.ActiveMQConnectionFactory createSenderConnectionFactory()
           
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.test.JmsTopicSendReceiveWithTwoConnectionsTest
createConnectionFactory
 
Methods inherited from class org.activemq.test.JmsSendReceiveTestSupport
assertMessagesAreReceived, assertMessagesReceivedAreValid, consumeMessage, createConcurrentList, onMessage, testSendReceive, waitForMessagesToBeDelivered
 
Methods inherited from class org.activemq.test.TestSupport
assertEquals, assertEquals, assertEquals, assertTextMessageEqual, assertTextMessagesEqual, assertTextMessagesEqual, createConnection, 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

sendFactory

protected org.activemq.ActiveMQConnectionFactory sendFactory

receiveFactory

protected org.activemq.ActiveMQConnectionFactory receiveFactory
Constructor Detail

TwoBrokerTopicSendReceiveTest

public TwoBrokerTopicSendReceiveTest()
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.


createReceiverConnectionFactory

protected org.activemq.ActiveMQConnectionFactory createReceiverConnectionFactory()
                                                                          throws javax.jms.JMSException

createSenderConnectionFactory

protected org.activemq.ActiveMQConnectionFactory createSenderConnectionFactory()
                                                                        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.


createReceiveConnection

protected javax.jms.Connection createReceiveConnection()
                                                throws javax.jms.JMSException

createSendConnection

protected javax.jms.Connection createSendConnection()
                                             throws javax.jms.JMSException

createConnectionFactory

protected org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.lang.String config,
                                                                         java.lang.String brokerName,
                                                                         java.lang.String connectUrl)
                                                                  throws javax.jms.JMSException