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

public class MessageHeaderTest extends PTPTestCase
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.JMSTestCase

    admin, PROP_FILE_NAME, startServer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static junit.framework.Test
    Method to use this class in a Test suite
    void
    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
    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
    Test that the value of the JMSExpiration header field is the same for the sent message and the received one.
    void
    Test that the JMSMessageID header field value is ignored when the message is sent.
    void
    Test that the JMSMessageID is set by the provider when the send method returns and that it starts with "ID:".
    void
    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
    Test that the MessageProducer.setPriority() changes effectively priority of the message.
    void
    Test that a Destination set by the setJMSReplyTo() method on a sended message corresponds to the Destination get by the getJMSReplyTo() method.
    void
    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

    setUp, tearDown

    Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase

    fail, getProviderProperties

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MessageHeaderTest

      public MessageHeaderTest(String name)
  • Method Details

    • 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 junit.framework.Test suite()
      Method to use this class in a Test suite