Class UnifiedSessionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.UnifiedTestCase
org.objectweb.jtests.jms.conform.session.UnifiedSessionTest
- All Implemented Interfaces:
junit.framework.Test
Test unified JMS 1.1 sessions.
See JMS 1.1 specifications
See JMS 1.1 specifications
- Since:
- JMS 1.1
- Version:
- $Id: UnifiedSessionTest.java,v 1.1 2007/03/29 04:28:37 starksm Exp $
- Author:
- Jeff Mesnil (jmesnil@gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.jms.QueueConnectionQueueConnectionprotected jakarta.jms.QueueSessionQueueSession (non transacted, AUTO_ACKNOWLEDGE)protected jakarta.jms.TopicConnectionTopicConnectionprotected jakarta.jms.TopicSessionTopicSession (non transacted, AUTO_ACKNOWLEDGE)Fields inherited from class org.objectweb.jtests.jms.framework.UnifiedTestCase
consumer, consumerCF, consumerConnection, consumerDestination, consumerSession, ctx, producer, producerCF, producerConnection, producerDestination, producerSession, queue, queueConnectionFactory, topic, topicConnectionFactoryFields inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
admin, PROP_FILE_NAME, startServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Create all administrated objects connections and sessions ready to use for tests.static junit.framework.Testsuite()Method to use this class in a Test suitevoidtearDown()Close connections and delete administrated objectsvoidTest that a call tocreateBrowser()method on aTopicSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateDurableConnectionConsumer()method on aQueueConnectionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateDurableSubscriber()method on aQueueSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateQueue()method on aTopicSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateTemporaryQueue()method on aTopicSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateTemporaryTopic()method on aQueueSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tocreateTopic()method on aQueueSessionthrows ajakarta.jms.IllegalStateException.voidTest that a call tounsubscribe()method on aQueueSessionthrows ajakarta.jms.IllegalStateException.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
-
queueConnection
protected jakarta.jms.QueueConnection queueConnectionQueueConnection -
queueSession
protected jakarta.jms.QueueSession queueSessionQueueSession (non transacted, AUTO_ACKNOWLEDGE) -
topicConnection
protected jakarta.jms.TopicConnection topicConnectionTopicConnection -
topicSession
protected jakarta.jms.TopicSession topicSessionTopicSession (non transacted, AUTO_ACKNOWLEDGE)
-
-
Constructor Details
-
UnifiedSessionTest
-
-
Method Details
-
testCreateDurableConnectionConsumerOnQueueConnection
public void testCreateDurableConnectionConsumerOnQueueConnection()Test that a call tocreateDurableConnectionConsumer()method on aQueueConnectionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateDurableSubscriberOnQueueSession
public void testCreateDurableSubscriberOnQueueSession()Test that a call tocreateDurableSubscriber()method on aQueueSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateTemporaryTopicOnQueueSession
public void testCreateTemporaryTopicOnQueueSession()Test that a call tocreateTemporaryTopic()method on aQueueSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateTopicOnQueueSession
public void testCreateTopicOnQueueSession()Test that a call tocreateTopic()method on aQueueSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testUnsubscribeOnQueueSession
public void testUnsubscribeOnQueueSession()Test that a call tounsubscribe()method on aQueueSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateBrowserOnTopicSession
public void testCreateBrowserOnTopicSession()Test that a call tocreateBrowser()method on aTopicSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateQueueOnTopicSession
public void testCreateQueueOnTopicSession()Test that a call tocreateQueue()method on aTopicSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
testCreateTemporaryQueueOnTopicSession
public void testCreateTemporaryQueueOnTopicSession()Test that a call tocreateTemporaryQueue()method on aTopicSessionthrows ajakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).- Since:
- JMS 1.1
-
setUp
Description copied from class:UnifiedTestCaseCreate all administrated objects connections and sessions ready to use for tests.
Start connections.- Overrides:
setUpin classUnifiedTestCase- Throws:
Exception
-
tearDown
Description copied from class:UnifiedTestCaseClose connections and delete administrated objects- Overrides:
tearDownin classUnifiedTestCase- Throws:
Exception
-
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-