Class QueueSessionTest
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.session.QueueSessionTest
- All Implemented Interfaces:
junit.framework.Test
Test queue sessions
See JMS specifications, sec. 4.4 Session
See JMS specifications, sec. 4.4 Session
- Version:
- $Id: QueueSessionTest.java,v 1.2 2007/06/19 23:32:35 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 a call to thecreateBrowser()method with an invalidQueuethrows ajakarta.jms.InvalidDestinationException.voidTest that a call to thecreateBrowser()method with an invalid messaeg session throws ajakarta.jms.InvalidSelectorException.voidTest that a call to thecreateReceiver()method with an invalidQueuethrows ajakarta.jms.InvalidDestinationException>voidTest that a call to thecreateReceiver()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException.voidTest 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, 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
-
QueueSessionTest
-
-
Method Details
-
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 thecreateBrowser()method with an invalid messaeg session throws ajakarta.jms.InvalidSelectorException. -
testCreateBrowser_1
public void testCreateBrowser_1()Test that a call to thecreateBrowser()method with an invalidQueuethrows ajakarta.jms.InvalidDestinationException. -
testCreateReceiver_2
public void testCreateReceiver_2()Test that a call to thecreateReceiver()method with an invalid message selector throws ajakarta.jms.InvalidSelectorException. -
testCreateReceiver_1
public void testCreateReceiver_1()Test that a call to thecreateReceiver()method with an invalidQueuethrows ajakarta.jms.InvalidDestinationException> -
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-