Class TopicSessionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PubSubTestCase
org.objectweb.jtests.jms.conform.session.TopicSessionTest
- All Implemented Interfaces:
junit.framework.Test
Test topic sessions
See JMS specifications, sec. 4.4 Session
See JMS specifications, sec. 4.4 Session
- Version:
- $Id: TopicSessionTest.java,v 1.2 2007/06/19 23:32:35 csuconic Exp $
- Author:
- Jeff Mesnil (jmesnil@gmail.com)
-
Field Summary
Fields inherited from class org.objectweb.jtests.jms.framework.PubSubTestCase
publisher, publisherConnection, publisherSession, publisherTCF, publisherTopic, subscriber, subscriberConnection, subscriberSession, subscriberTCF, subscriberTopicFields inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
admin, PROP_FILE_NAME, startServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.Testsuite()Method to use this class in a Test suitevoidTest that a call to thecreateDurableSubscriber()method with an invalidTopicthrows ajakarta.jms.InvalidDestinationException.voidTest that a call to thecreateDurableSubscriber()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException.voidTest that a call to thecreateSubscriber()method with an invalidTopicthrows ajakarta.jms.InvalidDestinationException.voidTest that a call to thecreateSubscriber()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException.voidTest that a durable subscriber effectively receives the messages sent to its topic while it was inactive.voidTest that if we rollback a transaction which has consumed a message, the message is effectively redelivered.voidTest the unsubscription of a durable subscriber.Methods inherited from class org.objectweb.jtests.jms.framework.PubSubTestCase
setUp, tearDownMethods 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
-
Constructor Details
-
TopicSessionTest
-
-
Method Details
-
testRollbackReceivedMessage
public void testRollbackReceivedMessage()Test that if we rollback a transaction which has consumed a message, the message is effectively redelivered. -
testDurableSubscriber
public void testDurableSubscriber()Test that a durable subscriber effectively receives the messages sent to its topic while it was inactive. -
testUnsubscribe
public void testUnsubscribe()Test the unsubscription of a durable subscriber. -
testCreateDurableSubscriber_2
public void testCreateDurableSubscriber_2()Test that a call to thecreateDurableSubscriber()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException. -
testCreateDurableSubscriber_1
public void testCreateDurableSubscriber_1()Test that a call to thecreateDurableSubscriber()method with an invalidTopicthrows ajakarta.jms.InvalidDestinationException. -
testCreateSubscriber_2
public void testCreateSubscriber_2()Test that a call to thecreateSubscriber()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException. -
testCreateSubscriber_1
public void testCreateSubscriber_1()Test that a call to thecreateSubscriber()method with an invalidTopicthrows ajakarta.jms.InvalidDestinationException. -
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-