org.mule.mule.model
Class LegacyEntryPointResolverTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.mule.model.LegacyEntryPointResolverTestCase

public class LegacyEntryPointResolverTestCase
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
LegacyEntryPointResolverTestCase()
           
 
Method Summary
 void testArrayArgumentResolution()
          Test for proper resolution of a method that takes an array as argument.
 void testExplicitMethodMatch()
           
 void testExplicitMethodMatchComplexObject()
           
 void testExplicitMethodMatchSetArrayFail()
           
 void testExplicitMethodMatchSetArrayPass()
           
 void testExplicitMethodMatchSetArrayPassUsingExplicitResolver()
           
 void testExplicitOverride()
          Test for proper resolution of an existing method specified as override
 void testFailEntryPointMultiplePayloadMatches()
          Tests entrypoint discovery when there is more than one discoverable method with MuleEventContext parameter.
 void testListArgumentResolution()
          Test for proper resolution of a method that takes a List as argument.
 void testMethodOverrideDoesNotFallback()
          If there was a method parameter specified to override the discovery mechanism and no such method exists, an exception should be thrown, and no fallback to the default discovery should take place.
 void testMethodOverrideIgnoredWithCallable()
          If there was a method parameter specified to override the discovery mechanism and a Callable instance is serving the request, call the Callable, ignore the method override parameter.
 void testMethodOverrideIgnoredWithEventContext()
          If there was a method parameter specified to override the discovery mechanism and a target instance has a method accepting MuleEventContext, proceed to call this method, ignore the method override parameter.
 
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

LegacyEntryPointResolverTestCase

public LegacyEntryPointResolverTestCase()
Method Detail

testExplicitMethodMatch

public void testExplicitMethodMatch()
                             throws Exception
Throws:
Exception

testExplicitMethodMatchComplexObject

public void testExplicitMethodMatchComplexObject()
                                          throws Exception
Throws:
Exception

testExplicitMethodMatchSetArrayFail

public void testExplicitMethodMatchSetArrayFail()
                                         throws Exception
Throws:
Exception

testExplicitMethodMatchSetArrayPass

public void testExplicitMethodMatchSetArrayPass()
                                         throws Exception
Throws:
Exception

testExplicitMethodMatchSetArrayPassUsingExplicitResolver

public void testExplicitMethodMatchSetArrayPassUsingExplicitResolver()
                                                              throws Exception
Throws:
Exception

testFailEntryPointMultiplePayloadMatches

public void testFailEntryPointMultiplePayloadMatches()
                                              throws Exception
Tests entrypoint discovery when there is more than one discoverable method with MuleEventContext parameter.

Throws:
Exception

testMethodOverrideDoesNotFallback

public void testMethodOverrideDoesNotFallback()
                                       throws Exception
If there was a method parameter specified to override the discovery mechanism and no such method exists, an exception should be thrown, and no fallback to the default discovery should take place.

Throws:
Exception

testMethodOverrideIgnoredWithCallable

public void testMethodOverrideIgnoredWithCallable()
                                           throws Exception
If there was a method parameter specified to override the discovery mechanism and a Callable instance is serving the request, call the Callable, ignore the method override parameter.

Throws:
Exception

testMethodOverrideIgnoredWithEventContext

public void testMethodOverrideIgnoredWithEventContext()
                                               throws Exception
If there was a method parameter specified to override the discovery mechanism and a target instance has a method accepting MuleEventContext, proceed to call this method, ignore the method override parameter.

Throws:
Exception

testArrayArgumentResolution

public void testArrayArgumentResolution()
                                 throws Exception
Test for proper resolution of a method that takes an array as argument.

Throws:
Exception

testListArgumentResolution

public void testListArgumentResolution()
                                throws Exception
Test for proper resolution of a method that takes a List as argument.

Throws:
Exception

testExplicitOverride

public void testExplicitOverride()
                          throws Exception
Test for proper resolution of an existing method specified as override

Throws:
Exception


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