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

Quick Search    Search Deep

org.objectweb.jtests.jms.conform.connection
Class TopicConnectionTest  view TopicConnectionTest download TopicConnectionTest.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.connection.TopicConnectionTest
All Implemented Interfaces:
junit.framework.Test

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

Test topic-specific connection features. Test setting of client ID which is relevant only for Durable Subscribtion


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
TopicConnectionTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
          Method to use this class in a Test suite
 void testSetClientID_1()
          Test that a call to setClientID will throw an IllegalStateException if a client ID has already been set see JMS javadoc http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html#setClientID(java.lang.String)
 void testSetClientID_2()
          Test that a call to setClientID can occur only after connection creation and before any other action on the connection.
 void testSetClientID_3()
          Test that if another connection with the same clientID is already running when setClientID is called, the JMS provider should detect the duplicate ID and throw an InvalidClientIDException This test is relevant only if the ID is set by the JMS client see JMS javadoc http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html#setClientID(java.lang.String)
 
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

TopicConnectionTest

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

testSetClientID_1

public void testSetClientID_1()
Test that a call to setClientID will throw an IllegalStateException if a client ID has already been set see JMS javadoc http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html#setClientID(java.lang.String)


testSetClientID_2

public void testSetClientID_2()
Test that a call to setClientID can occur only after connection creation and before any other action on the connection. This test is relevant only if the ID is set by the JMS client see JMS javadoc http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html#setClientID(java.lang.String)


testSetClientID_3

public void testSetClientID_3()
Test that if another connection with the same clientID is already running when setClientID is called, the JMS provider should detect the duplicate ID and throw an InvalidClientIDException This test is relevant only if the ID is set by the JMS client see JMS javadoc http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Connection.html#setClientID(java.lang.String)


suite

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