Class TopicConnectionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PubSubTestCase
org.objectweb.jtests.jms.conform.connection.TopicConnectionTest
- All Implemented Interfaces:
junit.framework.Test
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, subscriberTopicFields inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
admin, PROP_FILE_NAME, startServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.Testsuite()Method to use this class in a Test suitevoidTest that a call tosetClientIDwill throw anIllegalStateExceptionif 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)voidTest that a call tosetClientIDcan occur only after connection creation and before any other action on the connection.Methods inherited from class org.objectweb.jtests.jms.framework.PubSubTestCase
setUp, tearDownMethods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
fail, getProviderPropertiesMethods 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
-
Constructor Details
-
TopicConnectionTest
-
-
Method Details
-
testSetClientID_1
public void testSetClientID_1()Test that a call tosetClientIDwill throw anIllegalStateExceptionif 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 tosetClientIDcan 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) -
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-