|
||||||||||
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
org.objectweb.jtests.jms.conform.session.UnifiedSessionTest
public class UnifiedSessionTest
Test unified JMS 1.1 sessions.
See JMS 1.1 specifications
Field Summary | |
---|---|
protected javax.jms.QueueConnection |
queueConnection
QueueConnection |
protected javax.jms.QueueSession |
queueSession
QueueSession (non transacted, AUTO_ACKNOWLEDGE) |
protected javax.jms.TopicConnection |
topicConnection
TopicConnection |
protected javax.jms.TopicSession |
topicSession
TopicSession (non transacted, AUTO_ACKNOWLEDGE) |
Fields inherited from class org.objectweb.jtests.jms.framework.UnifiedTestCase |
---|
admin, consumer, consumerCF, consumerConnection, consumerDestination, consumerSession, ctx, producer, producerCF, producerConnection, producerDestination, producerSession, queue, queueConnectionFactory, topic, topicConnectionFactory |
Constructor Summary | |
---|---|
UnifiedSessionTest(java.lang.String name)
|
Method Summary | |
---|---|
void |
setUp()
Create all administrated objects connections and sessions ready to use for tests. |
static junit.framework.Test |
suite()
Method to use this class in a Test suite |
void |
tearDown()
Close connections and delete administrated objects |
void |
testCreateBrowserOnTopicSession()
Test that a call to createBrowser() method
on a TopicSession throws a
javax.jms.IllegalStateException . |
void |
testCreateDurableConnectionConsumerOnQueueConnection()
Test that a call to createDurableConnectionConsumer() method
on a QueueConnection throws a
javax.jms.IllegalStateException . |
void |
testCreateDurableSubscriberOnQueueSession()
Test that a call to createDurableSubscriber() method
on a QueueSession throws a
javax.jms.IllegalStateException . |
void |
testCreateQueueOnTopicSession()
Test that a call to createQueue() method
on a TopicSession throws a
javax.jms.IllegalStateException . |
void |
testCreateTemporaryQueueOnTopicSession()
Test that a call to createTemporaryQueue() method
on a TopicSession throws a
javax.jms.IllegalStateException . |
void |
testCreateTemporaryTopicOnQueueSession()
Test that a call to createTemporaryTopic() method
on a QueueSession throws a
javax.jms.IllegalStateException . |
void |
testCreateTopicOnQueueSession()
Test that a call to createTopic() method
on a QueueSession throws a
javax.jms.IllegalStateException . |
void |
testUnsubscribeOnQueueSession()
Test that a call to unsubscribe() method
on a QueueSession throws a
javax.jms.IllegalStateException . |
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.QueueConnection queueConnection
protected javax.jms.QueueSession queueSession
protected javax.jms.TopicConnection topicConnection
protected javax.jms.TopicSession topicSession
Constructor Detail |
---|
public UnifiedSessionTest(java.lang.String name)
Method Detail |
---|
public void testCreateDurableConnectionConsumerOnQueueConnection()
createDurableConnectionConsumer()
method
on a QueueConnection
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateDurableSubscriberOnQueueSession()
createDurableSubscriber()
method
on a QueueSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateTemporaryTopicOnQueueSession()
createTemporaryTopic()
method
on a QueueSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateTopicOnQueueSession()
createTopic()
method
on a QueueSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testUnsubscribeOnQueueSession()
unsubscribe()
method
on a QueueSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateBrowserOnTopicSession()
createBrowser()
method
on a TopicSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateQueueOnTopicSession()
createQueue()
method
on a TopicSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void testCreateTemporaryQueueOnTopicSession()
createTemporaryQueue()
method
on a TopicSession
throws a
javax.jms.IllegalStateException
.
(see JMS 1.1 specs, table 4-1).
public void setUp()
UnifiedTestCase
setUp
in class UnifiedTestCase
public void tearDown()
UnifiedTestCase
tearDown
in class UnifiedTestCase
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |