|
|||||||||
| Home >> All >> org >> objectweb >> jtests >> jms >> conform >> [ message overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.objectweb.jtests.jms.conform.message
Class MessageTypeTest

java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PTPTestCase
org.objectweb.jtests.jms.conform.message.MessageTypeTest
- All Implemented Interfaces:
- junit.framework.Test
- public class MessageTypeTest
- extends org.objectweb.jtests.jms.framework.PTPTestCase
Test the different types of messages provided by JMS.
JMS provides 6 types of messages which differs by the type of their body:
Messagewhich doesn't have a bodyTextMessagewith aStringas bodyObjectMessagewith anyObjectas bodyBytesMessagewith a body made ofbytesMapMessagewith name-value pairs of Java primitives in its bodyStreamMessagewith a stream of Java primitives as body
For each of this type of message, we test that a message can be sent and received with an empty body or not.
- Version:
- $Id: MessageTypeTest.java,v 1.1 2002/04/21 21:15:18 chirino Exp $
| Field Summary |
| Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase |
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
MessageTypeTest(java.lang.String name)
|
|
| Method Summary | |
static junit.framework.Test |
suite()
Method to use this class in a Test suite |
void |
testBytesMessage_1()
Send a BytesMessage with an empty body. |
void |
testBytesMessage_2()
Send a BytesMessage with 2 Java primitives in its body (a
String and a double). |
void |
testgetMapNames()
Test that the MapMessage.getMapNames() method returns an
empty Enumeration when no map has been defined before. |
void |
testMapMessage_1()
Send a MapMessage with an empty body. |
void |
testMapMessage_2()
Send a MapMessage with 2 Java primitives in its body (a
String and a double). |
void |
testMapMessageConversion()
Test in MapMessage the conversion between getObject("foo") and
getDouble("foo") (the later returning a java.lang.Double and the former a double) |
void |
testObjectMessage_1()
Send a ObjectMessage with an empty body. |
void |
testObjectMessage_2()
Send an ObjectMessage with a Vector (composed of a
String and a double) in its body. |
void |
testStreamMessage_1()
Send a StreamMessage with an empty body. |
void |
testStreamMessage_2()
Send a StreamMessage with 2 Java primitives in its body (a
String and a double). |
void |
testTextMessage_1()
Send a TextMessage with an empty body. |
void |
testTextMessage_2()
Send a TextMessage with a String in its body. |
| Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase |
setUp, tearDown |
| Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase |
fail |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
MessageTypeTest
public MessageTypeTest(java.lang.String name)
| Method Detail |
testStreamMessage_2
public void testStreamMessage_2()
- Send a
StreamMessagewith 2 Java primitives in its body (aStringand adouble).
Receive it and test that the values of the primitives of the body are correct
testStreamMessage_1
public void testStreamMessage_1()
- Send a
StreamMessagewith an empty body.
Receive it and test if the message is effectively an instance ofStreamMessage
testMapMessageConversion
public void testMapMessageConversion()
- Test in MapMessage the conversion between
getObject("foo")andgetDouble("foo")(the later returning a java.lang.Double and the former a double)
testgetMapNames
public void testgetMapNames()
- Test that the
MapMessage.getMapNames()method returns an emptyEnumerationwhen no map has been defined before.
Also test that the same method returns the correct names of the map.
testMapMessage_2
public void testMapMessage_2()
- Send a
MapMessagewith 2 Java primitives in its body (aStringand adouble).
Receive it and test that the values of the primitives of the body are correct
testMapMessage_1
public void testMapMessage_1()
- Send a
MapMessagewith an empty body.
Receive it and test if the message is effectively an instance ofMapMessage
testObjectMessage_2
public void testObjectMessage_2()
- Send an
ObjectMessagewith aVector(composed of aStringand adouble) in its body.
Receive it and test that the values of the primitives of the body are correct
testObjectMessage_1
public void testObjectMessage_1()
- Send a
ObjectMessagewith an empty body.
Receive it and test if the message is effectively an instance ofObjectMessage
testBytesMessage_2
public void testBytesMessage_2()
- Send a
BytesMessagewith 2 Java primitives in its body (aStringand adouble).
Receive it and test that the values of the primitives of the body are correct
testBytesMessage_1
public void testBytesMessage_1()
- Send a
BytesMessagewith an empty body.
Receive it and test if the message is effectively an instance ofBytesMessage
testTextMessage_2
public void testTextMessage_2()
- Send a
TextMessagewith aStringin its body.
Receive it and test that the receivedStringcorresponds to the sent one.
testTextMessage_1
public void testTextMessage_1()
- Send a
TextMessagewith an empty body.
Receive it and test if the message is effectively an instance ofTextMessage
suite
public static junit.framework.Test suite()
- Method to use this class in a Test suite
|
|||||||||
| Home >> All >> org >> objectweb >> jtests >> jms >> conform >> [ message overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC