org.objectweb.jtests.jms.framework
Class PubSubTestCase

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.jtests.jms.framework.JMSTestCase (src) 
          extended byorg.objectweb.jtests.jms.framework.PubSubTestCase
Direct Known Subclasses:
TemporaryTopicTest (src) , TopicConnectionTest (src) , TopicSessionTest (src)

public class PubSubTestCase
extends JMSTestCase (src)

Creates convenient JMS Publish/Subscribe objects which can be needed for tests.
This class defines the setUp and tearDown methods so that JMS administrated objects and other "ready to use" Pub/Sub objects (that is to say topics, sessions, publishers and subscribers) are available conveniently for the test cases.
Classes which want that convenience should extend PubSubTestCase instead of JMSTestCase.

See Also:
Serialized Form

Field Summary
protected  TopicPublisher (src) publisher
          Publisher on queue
protected  TopicConnection (src) publisherConnection
          TopicConnection of the publisher
protected  TopicSession (src) publisherSession
          TopicSession of the publisher (non transacted, AUTO_ACKNOWLEDGE)
protected  TopicConnectionFactory (src) publisherTCF
          TopicConnectionFactory of the publisher
protected  Topic (src) publisherTopic
          Topic used by a publisher
protected  TopicSubscriber (src) subscriber
          Subscriber on queue
protected  TopicConnection (src) subscriberConnection
          TopicConnection of the subscriber
protected  TopicSession (src) subscriberSession
          TopicSession of the subscriber (non transacted, AUTO_ACKNOWLEDGE)
protected  TopicConnectionFactory (src) subscriberTCF
          TopicConnectionFactory of the subscriber
protected  Topic (src) subscriberTopic
          Topic used by a subscriber
 
Constructor Summary
PubSubTestCase(java.lang.String name)
           
 
Method Summary
protected  void setUp()
          Create all administrated objects connections and sessions ready to use for tests.
protected  void tearDown()
          Close connections and delete administrated objects
 
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase (src)
fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publisherTopic

protected Topic (src)  publisherTopic
Topic used by a publisher


publisher

protected TopicPublisher (src)  publisher
Publisher on queue


publisherTCF

protected TopicConnectionFactory (src)  publisherTCF
TopicConnectionFactory of the publisher


publisherConnection

protected TopicConnection (src)  publisherConnection
TopicConnection of the publisher


publisherSession

protected TopicSession (src)  publisherSession
TopicSession of the publisher (non transacted, AUTO_ACKNOWLEDGE)


subscriberTopic

protected Topic (src)  subscriberTopic
Topic used by a subscriber


subscriber

protected TopicSubscriber (src)  subscriber
Subscriber on queue


subscriberTCF

protected TopicConnectionFactory (src)  subscriberTCF
TopicConnectionFactory of the subscriber


subscriberConnection

protected TopicConnection (src)  subscriberConnection
TopicConnection of the subscriber


subscriberSession

protected TopicSession (src)  subscriberSession
TopicSession of the subscriber (non transacted, AUTO_ACKNOWLEDGE)

Constructor Detail

PubSubTestCase

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

setUp

protected void setUp()
Create all administrated objects connections and sessions ready to use for tests.
Start connections.


tearDown

protected void tearDown()
Close connections and delete administrated objects