Class MessageBodyTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
All Implemented Interfaces:
junit.framework.Test

public class MessageBodyTest extends PTPTestCase
Tests on message body.
Version:
$Id: MessageBodyTest.java,v 1.1 2007/03/29 04:28:37 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
    protected void
    Create all administrated objects connections and sessions ready to use for tests.
    static junit.framework.Test
    Method to use this class in a Test suite
    protected void
    Close connections and delete administrated objects
    void
    Test that the TextMessage.clearBody() effectively clear the body of the message
    void
    Test that the TextMessage.clearBody() method does nto clear the message properties.
    void
    Test that a call to the TextMessage.setText() method on a received message raises a javax.jms.MessageNotWriteableException.

    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

    • MessageBodyTest

      public MessageBodyTest(String name)
  • Method Details

    • suite

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

      public void testClearBody_2()
      Test that the TextMessage.clearBody() method does nto clear the message properties.
    • testClearBody_1

      public void testClearBody_1()
      Test that the TextMessage.clearBody() effectively clear the body of the message
    • testWriteOnReceivedBody

      public void testWriteOnReceivedBody()
      Test that a call to the TextMessage.setText() method on a received message raises a javax.jms.MessageNotWriteableException.
    • setUp

      protected void setUp() throws Exception
      Description copied from class: PTPTestCase
      Create all administrated objects connections and sessions ready to use for tests.
      Start connections.
      Overrides:
      setUp in class PTPTestCase
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Description copied from class: PTPTestCase
      Close connections and delete administrated objects
      Overrides:
      tearDown in class PTPTestCase
      Throws:
      Exception