Class PubSubTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PubSubTestCase
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
TemporaryTopicTest,TopicConnectionTest,TopicSessionTest
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
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.- Version:
- $Id: PubSubTestCase.java,v 1.2 2007/06/19 23:32:35 csuconic Exp $
- Author:
- Jeff Mesnil (jmesnil@gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.jms.TopicPublisherPublisher on queueprotected jakarta.jms.TopicConnectionTopicConnection of the publisherprotected jakarta.jms.TopicSessionTopicSession of the publisher (non transacted, AUTO_ACKNOWLEDGE)protected jakarta.jms.TopicConnectionFactoryTopicConnectionFactory of the publisherprotected jakarta.jms.TopicTopic used by a publisherprotected jakarta.jms.TopicSubscriberSubscriber on queueprotected jakarta.jms.TopicConnectionTopicConnection of the subscriberprotected jakarta.jms.TopicSessionTopicSession of the subscriber (non transacted, AUTO_ACKNOWLEDGE)protected jakarta.jms.TopicConnectionFactoryTopicConnectionFactory of the subscriberprotected jakarta.jms.TopicTopic used by a subscriberFields inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
admin, PROP_FILE_NAME, startServer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
fail, getProviderPropertiesMethods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Field Details
-
publisherTopic
protected jakarta.jms.Topic publisherTopicTopic used by a publisher -
publisher
protected jakarta.jms.TopicPublisher publisherPublisher on queue -
publisherTCF
protected jakarta.jms.TopicConnectionFactory publisherTCFTopicConnectionFactory of the publisher -
publisherConnection
protected jakarta.jms.TopicConnection publisherConnectionTopicConnection of the publisher -
publisherSession
protected jakarta.jms.TopicSession publisherSessionTopicSession of the publisher (non transacted, AUTO_ACKNOWLEDGE) -
subscriberTopic
protected jakarta.jms.Topic subscriberTopicTopic used by a subscriber -
subscriber
protected jakarta.jms.TopicSubscriber subscriberSubscriber on queue -
subscriberTCF
protected jakarta.jms.TopicConnectionFactory subscriberTCFTopicConnectionFactory of the subscriber -
subscriberConnection
protected jakarta.jms.TopicConnection subscriberConnectionTopicConnection of the subscriber -
subscriberSession
protected jakarta.jms.TopicSession subscriberSessionTopicSession of the subscriber (non transacted, AUTO_ACKNOWLEDGE)
-
-
Constructor Details
-
PubSubTestCase
-
-
Method Details
-
setUp
Create all administrated objects connections and sessions ready to use for tests.
Start connections.- Overrides:
setUpin classJMSTestCase- Throws:
Exception
-
tearDown
Close connections and delete administrated objects- Overrides:
tearDownin classJMSTestCase- Throws:
Exception
-