|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PubSubTestCase
public class PubSubTestCase
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
.
Field Summary | |
---|---|
protected javax.jms.TopicPublisher |
publisher
Publisher on queue |
protected javax.jms.TopicConnection |
publisherConnection
TopicConnection of the publisher |
protected javax.jms.TopicSession |
publisherSession
TopicSession of the publisher (non transacted, AUTO_ACKNOWLEDGE) |
protected javax.jms.TopicConnectionFactory |
publisherTCF
TopicConnectionFactory of the publisher |
protected javax.jms.Topic |
publisherTopic
Topic used by a publisher |
protected javax.jms.TopicSubscriber |
subscriber
Subscriber on queue |
protected javax.jms.TopicConnection |
subscriberConnection
TopicConnection of the subscriber |
protected javax.jms.TopicSession |
subscriberSession
TopicSession of the subscriber (non transacted, AUTO_ACKNOWLEDGE) |
protected javax.jms.TopicConnectionFactory |
subscriberTCF
TopicConnectionFactory of the subscriber |
protected javax.jms.Topic |
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 |
---|
fail, getProviderProperties |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.jms.Topic publisherTopic
protected javax.jms.TopicPublisher publisher
protected javax.jms.TopicConnectionFactory publisherTCF
protected javax.jms.TopicConnection publisherConnection
protected javax.jms.TopicSession publisherSession
protected javax.jms.Topic subscriberTopic
protected javax.jms.TopicSubscriber subscriber
protected javax.jms.TopicConnectionFactory subscriberTCF
protected javax.jms.TopicConnection subscriberConnection
protected javax.jms.TopicSession subscriberSession
Constructor Detail |
---|
public PubSubTestCase(java.lang.String name)
Method Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |