Class UnifiedSessionTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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@gmail.com)
  • Field Details

    • queueConnection

      protected jakarta.jms.QueueConnection queueConnection
      QueueConnection
    • queueSession

      protected jakarta.jms.QueueSession queueSession
      QueueSession (non transacted, AUTO_ACKNOWLEDGE)
    • topicConnection

      protected jakarta.jms.TopicConnection topicConnection
      TopicConnection
    • topicSession

      protected jakarta.jms.TopicSession topicSession
      TopicSession (non transacted, AUTO_ACKNOWLEDGE)
  • Constructor Details

    • UnifiedSessionTest

      public UnifiedSessionTest(String name)
  • Method Details

    • testCreateDurableConnectionConsumerOnQueueConnection

      public void testCreateDurableConnectionConsumerOnQueueConnection()
      Test that a call to createDurableConnectionConsumer() method on a QueueConnection throws a jakarta.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 jakarta.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 jakarta.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 jakarta.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 jakarta.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 jakarta.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 jakarta.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 jakarta.jms.IllegalStateException. (see JMS 1.1 specs, table 4-1).
      Since:
      JMS 1.1
    • setUp

      public void setUp() throws Exception
      Description copied from class: UnifiedTestCase
      Create all administrated objects connections and sessions ready to use for tests.
      Start connections.
      Overrides:
      setUp in class UnifiedTestCase
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Description copied from class: UnifiedTestCase
      Close connections and delete administrated objects
      Overrides:
      tearDown in class UnifiedTestCase
      Throws:
      Exception
    • suite

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