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 ConnectionTest  view ConnectionTest download ConnectionTest.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.PTPTestCase
                  extended byorg.objectweb.jtests.jms.conform.connection.ConnectionTest
All Implemented Interfaces:
junit.framework.Test

public class ConnectionTest
extends org.objectweb.jtests.jms.framework.PTPTestCase

Test connections. See JMS specifications, §4.3.5 Closing a Connection

Version:
$Id: ConnectionTest.java,v 1.1 2002/04/21 21:15:18 chirino Exp $

Field Summary
 
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConnectionTest(java.lang.String name)
           
 
Method Summary
static junit.framework.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
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

ConnectionTest

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

testAcknowledge

public void testAcknowledge()
Test that invoking the acknowledge() method of a received message from a closed connection's session must throw an IllegalStateException.


testUseClosedConnection

public void testUseClosedConnection()
Test that an attempt to use a Connection which has been closed throws a javax.jms.IllegalStateException.


testMessageSentWhenConnectionClosed

public void testMessageSentWhenConnectionClosed()
Test that a MessageProducer can send messages while a Connection is 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