org.objectweb.jtests.jms.conform.message
Class MessageBodyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.objectweb.jtests.jms.framework.JMSTestCase
              extended by org.objectweb.jtests.jms.framework.PTPTestCase
                  extended by org.objectweb.jtests.jms.conform.message.MessageBodyTest
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@inrialpes.fr)

Field Summary
 
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession
 
Constructor Summary
MessageBodyTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
          Method to use this class in a Test suite
 void testClearBody_1()
          Test that the TextMessage.clearBody() effectively clear the body of the message
 void testClearBody_2()
          Test that the TextMessage.clearBody() method does nto clear the message properties.
 void testWriteOnReceivedBody()
          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.PTPTestCase
setUp, tearDown
 
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase
fail, getProviderProperties
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageBodyTest

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

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.


suite

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



Copyright © 2010 JBoss, A division of Red Hat. All Rights Reserved.