Class MessageHeaderTest
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.message.headers.MessageHeaderTest
- All Implemented Interfaces:
junit.framework.Test
Test the headers of a message
- Version:
- $Id: MessageHeaderTest.java,v 1.1 2007/03/29 04:28:36 starksm 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 theJMSDeliveryModeheader field value is ignored when the message is sent and that it holds the value specified by the sending method (i.e.voidTest that theJMSDestinationheader field value is ignored when the message is sent and that after completion of the sending method, it holds theDestinationspecified by the sending method.voidTest that the value of theJMSExpirationheader field is the same for the sent message and the received one.voidTest that theJMSMessageIDheader field value is ignored when the message is sent.voidTest that theJMSMessageIDis set by the provider when thesendmethod returns and that it starts with"ID:".voidTest that the priority set byMessage.setJMSPriority()is ignored when a message is sent and that it holds the value specified when sending the message (i.e.voidTest that theMessageProducer.setPriority()changes effectively priority of the message.voidTest that aDestinationset by thesetJMSReplyTo()method on a sended message corresponds to theDestinationget by the getJMSReplyTo() method.voidTest that if the JMS ReplyTo header field has been set as aTemporaryQueue, it will be rightly get also as aTemporaryQueue(and not only as aQueue).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
-
MessageHeaderTest
-
-
Method Details
-
testJMSPriority_2
public void testJMSPriority_2()Test that theMessageProducer.setPriority()changes effectively priority of the message. -
testJMSPriority_1
public void testJMSPriority_1()Test that the priority set byMessage.setJMSPriority()is ignored when a message is sent and that it holds the value specified when sending the message (i.e.Message.DEFAULT_PRIORITYin this test). -
testJMSExpiration
public void testJMSExpiration()Test that the value of theJMSExpirationheader field is the same for the sent message and the received one. -
testJMSMessageID_2
public void testJMSMessageID_2()Test that theJMSMessageIDis set by the provider when thesendmethod returns and that it starts with"ID:". -
testJMSMessageID_1
public void testJMSMessageID_1()Test that theJMSMessageIDheader field value is ignored when the message is sent. -
testJMSDeliveryMode
public void testJMSDeliveryMode()Test that theJMSDeliveryModeheader field value is ignored when the message is sent and that it holds the value specified by the sending method (i.e.Message.DEFAULT_DELIVERY_MODEin this test when the message is received. -
testJMSDestination
public void testJMSDestination()Test that theJMSDestinationheader field value is ignored when the message is sent and that after completion of the sending method, it holds theDestinationspecified by the sending method. Also test that the value of the header on the received message is the same that on the sent message. -
testJMSReplyTo_1
public void testJMSReplyTo_1()Test that aDestinationset by thesetJMSReplyTo()method on a sended message corresponds to theDestinationget by the getJMSReplyTo() method. -
testJMSReplyTo_2
public void testJMSReplyTo_2()Test that if the JMS ReplyTo header field has been set as aTemporaryQueue, it will be rightly get also as aTemporaryQueue(and not only as aQueue). -
suite
public static junit.framework.Test suite()Method to use this class in a Test suite
-