Class ConnectionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PTPTestCase
org.objectweb.jtests.jms.conform.connection.ConnectionTest
- All Implemented Interfaces:
junit.framework.Test
Test connections.
See JMS specifications, sec. 4.3.5 Closing a Connection
- Version:
- $Id: ConnectionTest.java,v 1.2 2007/06/15 20:55:20 csuconic Exp $
- Author:
- Jeff Mesnil (jmesnil@gmail.com)
-
Field Summary
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSessionFields 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 invoking theacknowledge()method of a received message from a closed connection's session must throw anIllegalStateException.voidTest that closing a closed connectiondoes not throw an exception.voidTest that aMessageProducercan send messages while aConnectionis stopped.voidTest that starting a started connection is ignoredvoidTest that delivery of message is stopped if the message consumer connection is stoppedvoidTest that stopping a stopped connection is ignoredvoidTest that an attempt to use aConnectionwhich has been closed throws ajakarta.jms.IllegalStateException.Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
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
-
ConnectionTest
-
-
Method Details
-
testAcknowledge
public void testAcknowledge()Test that invoking theacknowledge()method of a received message from a closed connection's session must throw anIllegalStateException. -
testUseClosedConnection
public void testUseClosedConnection()Test that an attempt to use aConnectionwhich has been closed throws ajakarta.jms.IllegalStateException. -
testMessageSentWhenConnectionClosed
public void testMessageSentWhenConnectionClosed()Test that aMessageProducercan send messages while aConnectionis stopped. -
testCloseClosedConnection
public void testCloseClosedConnection()Test that closing a closed connectiondoes not throw an exception. -
testStartStartedConnection
public void testStartStartedConnection()Test that starting a started connection is ignored -
testStopStoppedConnection
public void testStopStoppedConnection()Test that stopping a stopped connection is ignored -
testStopConsumerConnection
public void testStopConsumerConnection()Test that delivery of message is stopped if the message consumer connection is stopped -
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-