|
||||||||||
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.UnifiedTestCase
public class UnifiedTestCase
Creates convenient Unified JMS 1.1 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" JMS objects (that is to say destinations,
sessions, producers and consumers) are available conveniently for the test cases.
Classes which want that convenience should extend UnifiedTestCase
instead of
JMSTestCase
.
Field Summary | |
---|---|
protected Admin |
admin
|
protected javax.jms.MessageConsumer |
consumer
Consumer on destination |
protected javax.jms.ConnectionFactory |
consumerCF
ConnectionFactory of the consumer |
protected javax.jms.Connection |
consumerConnection
Connection of the consumer |
protected javax.jms.Destination |
consumerDestination
Destination used by a consumer |
protected javax.jms.Session |
consumerSession
Session of the consumer (non transacted, AUTO_ACKNOWLEDGE) |
protected javax.naming.InitialContext |
ctx
|
protected javax.jms.MessageProducer |
producer
Producer |
protected javax.jms.ConnectionFactory |
producerCF
ConnectionFactory of the producer |
protected javax.jms.Connection |
producerConnection
Connection of the producer |
protected javax.jms.Destination |
producerDestination
Destination used by a producer |
protected javax.jms.Session |
producerSession
Session of the producer (non transacted, AUTO_ACKNOWLEDGE) |
protected javax.jms.Queue |
queue
Queue |
protected javax.jms.QueueConnectionFactory |
queueConnectionFactory
QueueConnectionFactory |
protected javax.jms.Topic |
topic
Topic |
protected javax.jms.TopicConnectionFactory |
topicConnectionFactory
TopicConnectionFactory |
Constructor Summary | |
---|---|
UnifiedTestCase(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 Admin admin
protected javax.naming.InitialContext ctx
protected javax.jms.Destination producerDestination
protected javax.jms.MessageProducer producer
protected javax.jms.ConnectionFactory producerCF
protected javax.jms.Connection producerConnection
protected javax.jms.Session producerSession
protected javax.jms.Destination consumerDestination
protected javax.jms.MessageConsumer consumer
protected javax.jms.ConnectionFactory consumerCF
protected javax.jms.Connection consumerConnection
protected javax.jms.Session consumerSession
protected javax.jms.QueueConnectionFactory queueConnectionFactory
protected javax.jms.Queue queue
protected javax.jms.TopicConnectionFactory topicConnectionFactory
protected javax.jms.Topic topic
Constructor Detail |
---|
public UnifiedTestCase(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 |