Class TopicSessionTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
All Implemented Interfaces:
junit.framework.Test

public class TopicSessionTest extends PubSubTestCase
Test topic sessions
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.JMSTestCase

    admin, PROP_FILE_NAME, startServer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static junit.framework.Test
    Method to use this class in a Test suite
    void
    Test that a call to the createDurableSubscriber() method with an invalid Topic throws a jakarta.jms.InvalidDestinationException.
    void
    Test that a call to the createDurableSubscriber() method with an invalid message selector throws a jakarta.jms.InvalidSelectorException.
    void
    Test that a call to the createSubscriber() method with an invalid Topic throws a jakarta.jms.InvalidDestinationException.
    void
    Test that a call to the createSubscriber() method with an invalid message selector throws a jakarta.jms.InvalidSelectorException.
    void
    Test that a durable subscriber effectively receives the messages sent to its topic while it was inactive.
    void
    Test that if we rollback a transaction which has consumed a message, the message is effectively redelivered.
    void
    Test the unsubscription of a durable subscriber.

    Methods inherited from class org.objectweb.jtests.jms.framework.PubSubTestCase

    setUp, tearDown

    Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase

    fail, getProviderProperties

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TopicSessionTest

      public TopicSessionTest(String name)
  • 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 the createDurableSubscriber() method with an invalid message selector throws a jakarta.jms.InvalidSelectorException.
    • testCreateDurableSubscriber_1

      public void testCreateDurableSubscriber_1()
      Test that a call to the createDurableSubscriber() method with an invalid Topic throws a jakarta.jms.InvalidDestinationException.
    • testCreateSubscriber_2

      public void testCreateSubscriber_2()
      Test that a call to the createSubscriber() method with an invalid message selector throws a jakarta.jms.InvalidSelectorException.
    • testCreateSubscriber_1

      public void testCreateSubscriber_1()
      Test that a call to the createSubscriber() method with an invalid Topic throws a jakarta.jms.InvalidDestinationException.
    • suite

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