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

Quick Search    Search Deep

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

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

Test queue sessions
See JMS specifications, §4.4 Session

Version:
$Id: QueueSessionTest.java,v 1.1 2002/04/21 21:15:19 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
QueueSessionTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
          Method to use this class in a Test suite
 void testCreateBrowser_1()
          Test that a call to the createBrowser() method with an invalid Queue throws a javax.jms.InvalidDestinationException.
 void testCreateBrowser_2()
          Test that a call to the createBrowser() method with an invalid messaeg session throws a javax.jms.InvalidSelectorException.
 void testCreateReceiver_1()
          Test that a call to the createReceiver() method with an invalid Queue throws a javax.jms.InvalidDestinationException>
 void testCreateReceiver_2()
          Test that a call to the createReceiver() method with an invalid message selector throws a javax.jms.InvalidSelectorException.
 void testRollbackRececeivedMessage()
          Test that if we rollback a transaction which has consumed a message, the message is effectively redelivered.
 
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

QueueSessionTest

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

testRollbackRececeivedMessage

public void testRollbackRececeivedMessage()
Test that if we rollback a transaction which has consumed a message, the message is effectively redelivered.


testCreateBrowser_2

public void testCreateBrowser_2()
Test that a call to the createBrowser() method with an invalid messaeg session throws a javax.jms.InvalidSelectorException.


testCreateBrowser_1

public void testCreateBrowser_1()
Test that a call to the createBrowser() method with an invalid Queue throws a javax.jms.InvalidDestinationException.


testCreateReceiver_2

public void testCreateReceiver_2()
Test that a call to the createReceiver() method with an invalid message selector throws a javax.jms.InvalidSelectorException.


testCreateReceiver_1

public void testCreateReceiver_1()
Test that a call to the createReceiver() method with an invalid Queue throws a javax.jms.InvalidDestinationException>


suite

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