org.objectweb.jtests.jms.conform.session
Class UnifiedSessionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.objectweb.jtests.jms.framework.JMSTestCase
              extended by org.objectweb.jtests.jms.framework.UnifiedTestCase
                  extended by org.objectweb.jtests.jms.conform.session.UnifiedSessionTest
All Implemented Interfaces:
junit.framework.Test

public class UnifiedSessionTest
extends UnifiedTestCase

Test unified JMS 1.1 sessions.
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@inrialpes.fr)

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

queueConnection

protected javax.jms.QueueConnection queueConnection
QueueConnection


queueSession

protected javax.jms.QueueSession queueSession
QueueSession (non transacted, AUTO_ACKNOWLEDGE)


topicConnection

protected javax.jms.TopicConnection topicConnection
TopicConnection


topicSession

protected javax.jms.TopicSession topicSession
TopicSession (non transacted, AUTO_ACKNOWLEDGE)

Constructor Detail

UnifiedSessionTest

public UnifiedSessionTest(java.lang.String name)
Method Detail

testCreateDurableConnectionConsumerOnQueueConnection

public void testCreateDurableConnectionConsumerOnQueueConnection()
Test that a call to createDurableConnectionConsumer() method on a QueueConnection throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateDurableSubscriberOnQueueSession

public void testCreateDurableSubscriberOnQueueSession()
Test that a call to createDurableSubscriber() method on a QueueSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateTemporaryTopicOnQueueSession

public void testCreateTemporaryTopicOnQueueSession()
Test that a call to createTemporaryTopic() method on a QueueSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateTopicOnQueueSession

public void testCreateTopicOnQueueSession()
Test that a call to createTopic() method on a QueueSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testUnsubscribeOnQueueSession

public void testUnsubscribeOnQueueSession()
Test that a call to unsubscribe() method on a QueueSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateBrowserOnTopicSession

public void testCreateBrowserOnTopicSession()
Test that a call to createBrowser() method on a TopicSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateQueueOnTopicSession

public void testCreateQueueOnTopicSession()
Test that a call to createQueue() method on a TopicSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

testCreateTemporaryQueueOnTopicSession

public void testCreateTemporaryQueueOnTopicSession()
Test that a call to createTemporaryQueue() method on a TopicSession throws a javax.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).

Since:
JMS 1.1

setUp

public void setUp()
Description copied from class: UnifiedTestCase
Create all administrated objects connections and sessions ready to use for tests.
Start connections.

Overrides:
setUp in class UnifiedTestCase

tearDown

public void tearDown()
Description copied from class: UnifiedTestCase
Close connections and delete administrated objects

Overrides:
tearDown in class UnifiedTestCase

suite

public static junit.framework.Test suite()
Method to use this class in a Test suite



Copyright © 2010 JBoss, A division of Red Hat. All Rights Reserved.