org.objectweb.jtests.jms.conform.message.headers
Class MessageHeaderTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.jtests.jms.framework.JMSTestCase (src) 
          extended byorg.objectweb.jtests.jms.framework.PTPTestCase (src) 
              extended byorg.objectweb.jtests.jms.conform.message.headers.MessageHeaderTest

public class MessageHeaderTest
extends PTPTestCase (src)

Test the headers of a message

See Also:
Serialized Form

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
MessageHeaderTest(java.lang.String name)
           
 
Method Summary
static Test suite()
          Method to use this class in a Test suite
 void testJMSDeliveryMode()
          Test that the JMSDeliveryMode header field value is ignored when the message is sent and that it holds the value specified by the sending method (i.e.
 void testJMSDestination()
          Test that the JMSDestination header field value is ignored when the message is sent and that after completion of the sending method, it holds the Destination specified by the sending method.
 void testJMSExpiration()
          Test that the value of the JMSExpiration header field is the same for the sent message and the received one.
 void testJMSMessageID_1()
          Test that the JMSMessageID header field value is ignored when the message is sent.
 void testJMSMessageID_2()
          Test that the JMSMessageID is set by the provider when the send method returns and that it starts with "ID:".
 void testJMSPriority_1()
          Test that the priority set by Message.setJMSPriority() is ignored when a message is sent and that it holds the value specified when sending the message (i.e.
 void testJMSPriority_2()
          Test that the MessageProducer.setPriority() changes effectively priority of the message.
 void testJMSReplyTo_1()
          Test that a Destination set by the setJMSReplyTo() method on a sended message corresponds to the Destination get by the getJMSReplyTo() method.
 void testJMSReplyTo_2()
          Test that if the JMS ReplyTo header field has been set as a TemporaryQueue, it will be rightly get also as a TemporaryQueue (and not only as a Queue).
 
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

MessageHeaderTest

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

testJMSPriority_2

public void testJMSPriority_2()
Test that the MessageProducer.setPriority() changes effectively priority of the message.


testJMSPriority_1

public void testJMSPriority_1()
Test that the priority set by Message.setJMSPriority() is ignored when a message is sent and that it holds the value specified when sending the message (i.e. Message.DEFAULT_PRIORITY in this test).


testJMSExpiration

public void testJMSExpiration()
Test that the value of the JMSExpiration header field is the same for the sent message and the received one.


testJMSMessageID_2

public void testJMSMessageID_2()
Test that the JMSMessageID is set by the provider when the send method returns and that it starts with "ID:".


testJMSMessageID_1

public void testJMSMessageID_1()
Test that the JMSMessageID header field value is ignored when the message is sent.


testJMSDeliveryMode

public void testJMSDeliveryMode()
Test that the JMSDeliveryMode header 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_MODE in this test when the message is received.


testJMSDestination

public void testJMSDestination()
Test that the JMSDestination header field value is ignored when the message is sent and that after completion of the sending method, it holds the Destination specified 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 a Destination set by the setJMSReplyTo() method on a sended message corresponds to the Destination get by the getJMSReplyTo() method.


testJMSReplyTo_2

public void testJMSReplyTo_2()
Test that if the JMS ReplyTo header field has been set as a TemporaryQueue, it will be rightly get also as a TemporaryQueue (and not only as a Queue).


suite

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