|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.objectweb.jtests.jms.framework.JMSTestCase (src)
org.objectweb.jtests.jms.framework.PTPTestCase (src)
org.objectweb.jtests.jms.conform.connection.ConnectionTest
Test connections. See JMS specifications, §4.3.5 Closing a Connection
Field Summary |
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase (src) |
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession |
Constructor Summary | |
ConnectionTest(java.lang.String name)
|
Method Summary | |
static Test |
suite()
Method to use this class in a Test suite |
void |
testAcknowledge()
Test that invoking the acknowledge() method of a received message
from a closed connection's session must throw an IllegalStateException . |
void |
testCloseClosedConnection()
Test that closing a closed connectiondoes not throw an exception. |
void |
testMessageSentWhenConnectionClosed()
Test that a MessageProducer can send messages while a
Connection is stopped. |
void |
testStartStartedConnection()
Test that starting a started connection is ignored |
void |
testStopConsumerConnection()
Test that delivery of message is stopped if the message consumer connection is stopped |
void |
testStopStoppedConnection()
Test that stopping a stopped connection is ignored |
void |
testUseClosedConnection()
Test that an attempt to use a Connection which has been closed
throws a javax.jms.IllegalStateException . |
Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase (src) |
setUp, tearDown |
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase (src) |
fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionTest(java.lang.String name)
Method Detail |
public void testAcknowledge()
acknowledge()
method of a received message
from a closed connection's session must throw an IllegalStateException
.
public void testUseClosedConnection()
Connection
which has been closed
throws a javax.jms.IllegalStateException
.
public void testMessageSentWhenConnectionClosed()
MessageProducer
can send messages while a
Connection
is stopped.
public void testCloseClosedConnection()
public void testStartStartedConnection()
public void testStopStoppedConnection()
public void testStopConsumerConnection()
public static Test suite()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |