Class MessageBodyTest
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.MessageBodyTest
- All Implemented Interfaces:
junit.framework.Test
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.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 TypeMethodDescriptionprotected voidsetUp()Create all administrated objects connections and sessions ready to use for tests.static junit.framework.Testsuite()Method to use this class in a Test suiteprotected voidtearDown()Close connections and delete administrated objectsvoidTest that theTextMessage.clearBody()effectively clear the body of the messagevoidTest that theTextMessage.clearBody()method does nto clear the message properties.voidTest that a call to theTextMessage.setText()method on a received message raises ajavax.jms.MessageNotWriteableException.Methods 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
-
MessageBodyTest
-
-
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 theTextMessage.clearBody()method does nto clear the message properties. -
testClearBody_1
public void testClearBody_1()Test that theTextMessage.clearBody()effectively clear the body of the message -
testWriteOnReceivedBody
public void testWriteOnReceivedBody()Test that a call to theTextMessage.setText()method on a received message raises ajavax.jms.MessageNotWriteableException. -
setUp
Description copied from class:PTPTestCaseCreate all administrated objects connections and sessions ready to use for tests.
Start connections.- Overrides:
setUpin classPTPTestCase- Throws:
Exception
-
tearDown
Description copied from class:PTPTestCaseClose connections and delete administrated objects- Overrides:
tearDownin classPTPTestCase- Throws:
Exception
-