org.mule.test.integration.messaging.meps
Class MessagePropertiesPropagationTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.tck.junit4.FunctionalTestCase
              extended by org.mule.test.integration.messaging.meps.MessagePropertiesPropagationTestCase

public class MessagePropertiesPropagationTestCase
extends FunctionalTestCase


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
MessagePropertiesPropagationTestCase()
           
 
Method Summary
protected  String getConfigResources()
           
protected  boolean isDisabledInThisEnvironment()
          If a simple call to the web service indicates that it is not responding properly, we disable the test case so as to not report a test failure which has nothing to do with Mule.
protected  boolean isFailOnTimeout()
          Indicates whether the test should fail when a timeout is reached.
 void testForcePropagatedPropertiesWithHttpTransport()
          Force the properties to be propagated to the response message.
 void testNotPropagatedPropertiesWithCxfTransport()
          As per EE-1611/MULE-4302, custom properties and non-Correlation-related properties _should not_ be propagated to the response message by default.
 void testNotPropagatedPropertiesWithHttpTransport()
          As per EE-1611/MULE-4302, custom properties and non-Correlation-related properties _should not_ be propagated to the response message by default.
 void testPropagatedPropertiesWithCxfTransport()
          As per EE-1613, the Correlation-related properties _should_ be propagated to the response message by default.
 void testPropagatedPropertiesWithHttpTransport()
          As per EE-1613, the Correlation-related properties _should_ be propagated to the response message by default.
 void xtestForcePropagatedPropertiesWithCxfTransport()
          Force the properties to be propagated to the response message.
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
clearFlowAssertions, getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, stopFlowConstruct, testFlow, testFlow
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doTearDown, 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, isExcluded, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePropertiesPropagationTestCase

public MessagePropertiesPropagationTestCase()
Method Detail

isFailOnTimeout

protected boolean isFailOnTimeout()
Description copied from class: AbstractMuleTestCase
Indicates whether the test should fail when a timeout is reached.

This feature was added to support old test cases that depend on 3rd-party resources such as a public web service. In such cases it may be desirable to not fail the test upon timeout but rather to simply log a warning.

Overrides:
isFailOnTimeout in class AbstractMuleTestCase
Returns:
true if it must fail on timeout and false otherwise. Default value is true.

isDisabledInThisEnvironment

protected boolean isDisabledInThisEnvironment()
If a simple call to the web service indicates that it is not responding properly, we disable the test case so as to not report a test failure which has nothing to do with Mule.

Overrides:
isDisabledInThisEnvironment in class AbstractMuleTestCase
Returns:
true if the test class should not be run.

getConfigResources

protected String getConfigResources()
Specified by:
getConfigResources in class FunctionalTestCase

testPropagatedPropertiesWithHttpTransport

public void testPropagatedPropertiesWithHttpTransport()
                                               throws Exception
As per EE-1613, the Correlation-related properties _should_ be propagated to the response message by default.

Throws:
Exception

testPropagatedPropertiesWithCxfTransport

public void testPropagatedPropertiesWithCxfTransport()
                                              throws Exception
As per EE-1613, the Correlation-related properties _should_ be propagated to the response message by default.

Throws:
Exception

testNotPropagatedPropertiesWithHttpTransport

public void testNotPropagatedPropertiesWithHttpTransport()
                                                  throws Exception
As per EE-1611/MULE-4302, custom properties and non-Correlation-related properties _should not_ be propagated to the response message by default.

Throws:
Exception

testNotPropagatedPropertiesWithCxfTransport

public void testNotPropagatedPropertiesWithCxfTransport()
                                                 throws Exception
As per EE-1611/MULE-4302, custom properties and non-Correlation-related properties _should not_ be propagated to the response message by default.

Throws:
Exception

testForcePropagatedPropertiesWithHttpTransport

public void testForcePropagatedPropertiesWithHttpTransport()
                                                    throws Exception
Force the properties to be propagated to the response message.

Throws:
Exception

xtestForcePropagatedPropertiesWithCxfTransport

public void xtestForcePropagatedPropertiesWithCxfTransport()
                                                    throws Exception
Force the properties to be propagated to the response message. MULE-4986

Throws:
Exception


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