org.mule.transport.jms
Class JmsMessageUtilsTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.transport.jms.JmsMessageUtilsTestCase

public class JmsMessageUtilsTestCase
extends AbstractMuleTestCase


Field Summary
static String ENCODING
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
JmsMessageUtilsTestCase()
           
 
Method Summary
 void testByteMessageNullContentInJmsVersion_1_0_1()
           
 void testByteMessageNullContentInJmsVersion_1_1()
           
 void testConvertingByteArrayToBytesMessage()
           
 void testConvertingInvalidTypeThrowsException()
           
 void testConvertingMapIncludingNotValidNotSerializableValueThrowsException()
          Tests that trying to convert a Map which contains a non valid non serializable value throws an exception.
 void testConvertingMessageToMessageReturnsSameObject()
           
 void testConvertingSerializableToObjectMessage()
           
 void testConvertingStringToTextMessage()
           
 void testConvertsMapWithSerializableValueIntoObjectMessage()
          Tests that is able to convert a Map which contains a serializable value into an ObjectMessage.
 void testConvertsValidMapWithSimpleValuesToMapMessage()
          Tests that is able to convert a Map which only contains simple values into a MapMessage.
 void testHeaders()
           
 void testMapMessageWithNullValue()
           
 void testStreamMessageSerialization()
           
 void testStreamMessageSerializationWithInvalidType()
           
 void testTextMessageNullContent()
           
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

public static final String ENCODING
See Also:
Constant Field Values
Constructor Detail

JmsMessageUtilsTestCase

public JmsMessageUtilsTestCase()
Method Detail

testHeaders

public void testHeaders()

testTextMessageNullContent

public void testTextMessageNullContent()
                                throws Exception
Throws:
Exception

testByteMessageNullContentInJmsVersion_1_0_1

public void testByteMessageNullContentInJmsVersion_1_0_1()
                                                  throws Exception
Throws:
Exception

testByteMessageNullContentInJmsVersion_1_1

public void testByteMessageNullContentInJmsVersion_1_1()
                                                throws Exception
Throws:
Exception

testStreamMessageSerialization

public void testStreamMessageSerialization()
                                    throws Exception
Throws:
Exception

testStreamMessageSerializationWithInvalidType

public void testStreamMessageSerializationWithInvalidType()
                                                   throws Exception
Throws:
Exception

testMapMessageWithNullValue

public void testMapMessageWithNullValue()
                                 throws Exception
Throws:
Exception

testConvertsValidMapWithSimpleValuesToMapMessage

public void testConvertsValidMapWithSimpleValuesToMapMessage()
                                                      throws JMSException
Tests that is able to convert a Map which only contains simple values into a MapMessage.

Throws:
JMSException

testConvertsMapWithSerializableValueIntoObjectMessage

public void testConvertsMapWithSerializableValueIntoObjectMessage()
                                                           throws Exception
Tests that is able to convert a Map which contains a serializable value into an ObjectMessage.

Throws:
Exception

testConvertingMapIncludingNotValidNotSerializableValueThrowsException

public void testConvertingMapIncludingNotValidNotSerializableValueThrowsException()
                                                                           throws Exception
Tests that trying to convert a Map which contains a non valid non serializable value throws an exception.

Throws:
Exception

testConvertingStringToTextMessage

public void testConvertingStringToTextMessage()
                                       throws JMSException
Throws:
JMSException

testConvertingByteArrayToBytesMessage

public void testConvertingByteArrayToBytesMessage()
                                           throws JMSException
Throws:
JMSException

testConvertingSerializableToObjectMessage

public void testConvertingSerializableToObjectMessage()
                                               throws JMSException
Throws:
JMSException

testConvertingMessageToMessageReturnsSameObject

public void testConvertingMessageToMessageReturnsSameObject()
                                                     throws JMSException
Throws:
JMSException

testConvertingInvalidTypeThrowsException

public void testConvertingInvalidTypeThrowsException()
                                              throws JMSException
Throws:
JMSException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.