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

Quick Search    Search Deep

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

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

public class ProducerConsumerTestSupport
extends TestSupport

Base class for simple test cases using a single connection, session producer and consumer

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  javax.jms.Connection connection
           
protected  javax.jms.MessageConsumer consumer
           
protected  javax.jms.Destination destination
           
protected  javax.jms.MessageProducer producer
           
protected  javax.jms.Session session
           
 
Fields inherited from class org.activemq.test.TestSupport
connectionFactory, log, topic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ProducerConsumerTestSupport()
           
 
Method Summary
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.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

connection

protected javax.jms.Connection connection

session

protected javax.jms.Session session

producer

protected javax.jms.MessageProducer producer

consumer

protected javax.jms.MessageConsumer consumer

destination

protected javax.jms.Destination destination
Constructor Detail

ProducerConsumerTestSupport

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


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.