Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectweb.jtests.jms.conform.session
Class TopicSessionTest  view TopicSessionTest download TopicSessionTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.objectweb.jtests.jms.framework.JMSTestCase
              extended byorg.objectweb.jtests.jms.framework.PubSubTestCase
                  extended byorg.objectweb.jtests.jms.conform.session.TopicSessionTest
All Implemented Interfaces:
junit.framework.Test

public class TopicSessionTest
extends org.objectweb.jtests.jms.framework.PubSubTestCase

Test topic sessions
See JMS specifications, §4.4 Session

Version:
$Id: TopicSessionTest.java,v 1.1.4.1 2003/01/09 16:41:41 ejort Exp $

Field Summary
 
Fields inherited from class org.objectweb.jtests.jms.framework.PubSubTestCase
publisher, publisherConnection, publisherSession, publisherTCF, publisherTopic, subscriber, subscriberConnection, subscriberSession, subscriberTCF, subscriberTopic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TopicSessionTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
          Method to use this class in a Test suite
 void testCreateDurableSubscriber_1()
          Test that a call to the createDurableSubscriber() method with an invalid Topic throws a javax.jms.InvalidDestinationException.
 void testCreateDurableSubscriber_2()
          Test that a call to the createDurableSubscriber() method with an invalid message selector throws a javax.jms.InvalidSelectorException.
 void testCreateSubscriber_1()
          Test that a call to the createSubscriber() method with an invalid Topic throws a javax.jms.InvalidDestinationException.
 void testCreateSubscriber_2()
          Test that a call to the createSubscriber() method with an invalid message selector throws a javax.jms.InvalidSelectorException.
 void testDurableSubscriber()
          Test that a durable subscriber effectively receives the messages sent to its topic while it was inactive.
 void testRollbackReceivedMessage()
          Test that if we rollback a transaction which has consumed a message, the message is effectively redelivered.
 void testUnsubscribe()
          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
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicSessionTest

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

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 javax.jms.InvalidSelectorException.


testCreateDurableSubscriber_1

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


testCreateSubscriber_2

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


testCreateSubscriber_1

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


suite

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