org.mule.session
Class SessionPropertiesTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.session.SessionPropertiesTestCase

public class SessionPropertiesTestCase
extends AbstractMuleContextTestCase


Field Summary
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
SessionPropertiesTestCase()
           
 
Method Summary
 void asyncInterceptingProcessorSessionPropertyPropagation()
          MuleSession is not copied when async intercepting processor is used
 void defaultSessionHandlerNonSerializableSessionPropertyPropagation()
          Serialization of a MuleSession with session properties to message using SessionHandler serializes only serializable properties
 void defaultSessionHandlerSessionPropertyPropagation()
          Serialization of a MuleSession with session properties fails (no warning is given)
 void processFlowSessionPropertyPropagation()
          When invoking a Flow directly session properties are preserved
 void serializationNonSerializableSessionPropertyPropagation()
          Serialization of a MuleSession with session properties serializes only serializable properties
 void serializationSessionPropertyPropagation()
          MuleSession is not copied when async intercepting processor is used
 void setSessionPropertyNoEvent()
          Session properties set via message API are lost and unavailable via both message and session API's.
 void setSessionPropertyOnMessageGetFromSession()
          Properties set via via message api are available via session API.
 void setSessionPropertyOnSessionGetFromMessage()
          Properties set via via session api are available via message API.
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doTearDown, getBuilder, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
 
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
 

Constructor Detail

SessionPropertiesTestCase

public SessionPropertiesTestCase()
Method Detail

setSessionPropertyNoEvent

public void setSessionPropertyNoEvent()
                               throws Exception
Session properties set via message API are lost and unavailable via both message and session API's.

Throws:
Exception

setSessionPropertyOnMessageGetFromSession

public void setSessionPropertyOnMessageGetFromSession()
                                               throws Exception
Properties set via via message api are available via session API. But ONLY if RequestContext.setEvent() is used.

Throws:
Exception

setSessionPropertyOnSessionGetFromMessage

public void setSessionPropertyOnSessionGetFromMessage()
                                               throws Exception
Properties set via via session api are available via message API. But ONLY if RequestContext.setEvent() is used.

Throws:
Exception

asyncInterceptingProcessorSessionPropertyPropagation

public void asyncInterceptingProcessorSessionPropertyPropagation()
                                                          throws Exception
MuleSession is not copied when async intercepting processor is used

Throws:
Exception

serializationSessionPropertyPropagation

public void serializationSessionPropertyPropagation()
                                             throws Exception
MuleSession is not copied when async intercepting processor is used

Throws:
Exception

defaultSessionHandlerSessionPropertyPropagation

public void defaultSessionHandlerSessionPropertyPropagation()
                                                     throws Exception
Serialization of a MuleSession with session properties fails (no warning is given)

Throws:
Exception

serializationNonSerializableSessionPropertyPropagation

public void serializationNonSerializableSessionPropertyPropagation()
                                                            throws Exception
Serialization of a MuleSession with session properties serializes only serializable properties

Throws:
Exception

defaultSessionHandlerNonSerializableSessionPropertyPropagation

public void defaultSessionHandlerNonSerializableSessionPropertyPropagation()
                                                                    throws Exception
Serialization of a MuleSession with session properties to message using SessionHandler serializes only serializable properties

Throws:
Exception

processFlowSessionPropertyPropagation

public void processFlowSessionPropertyPropagation()
                                           throws Exception
When invoking a Flow directly session properties are preserved

Throws:
Exception


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