|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
public class MessageTypeTest
Test the different types of messages provided by JMS.
JMS provides 6 types of messages which differs by the type of their body:
Message which doesn't have a bodyTextMessage with a String as bodyObjectMessage with any Object as bodyBytesMessage with a body made of bytesMapMessage with name-value pairs of Java primitives in its bodyStreamMessage with a stream of Java primitives as body
| 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 | |
|---|---|
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 |
testEmptyStringInSetMethodsForMapMessage()
Test that the if the name parameter of the set methods of a MapMessage is an empty String,
the method must throw the error java.lang.IllegalArgumentException. |
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 |
testNullInSetMethodsForMapMessage()
Test that the if the name parameter of the set methods of a MapMessage is null,
the method must throw the error java.lang.IllegalArgumentException. |
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, 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 |
|---|
public MessageTypeTest(java.lang.String name)
| Method Detail |
|---|
public void testStreamMessage_2()
StreamMessage with 2 Java primitives in its body (a
String and a double).
public void testStreamMessage_1()
StreamMessage with an empty body.
StreamMessage
public void testMapMessageConversion()
getObject("foo") and
getDouble("foo") (the later returning a java.lang.Double and the former a double)
public void testNullInSetMethodsForMapMessage()
MapMessage is null,
the method must throw the error java.lang.IllegalArgumentException.
public void testEmptyStringInSetMethodsForMapMessage()
MapMessage is an empty String,
the method must throw the error java.lang.IllegalArgumentException.
public void testgetMapNames()
MapMessage.getMapNames() method returns an
empty Enumeration when no map has been defined before.
public void testMapMessage_2()
MapMessage with 2 Java primitives in its body (a
String and a double).
public void testMapMessage_1()
MapMessage with an empty body.
MapMessage
public void testObjectMessage_2()
ObjectMessage with a Vector (composed of a
String and a double) in its body.
public void testObjectMessage_1()
ObjectMessage with an empty body.
ObjectMessage
public void testBytesMessage_2()
BytesMessage with 2 Java primitives in its body (a
String and a double).
public void testBytesMessage_1()
BytesMessage with an empty body.
BytesMessage
public void testTextMessage_2()
TextMessage with a String in its body.
String corresponds to
the sent one.
public void testTextMessage_1()
TextMessage with an empty body.
TextMessage
public static junit.framework.Test suite()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||