org.mule.mule.model
Class DynamicEntryPointDiscoveryTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.tck.model.AbstractEntryPointDiscoveryTestCase
                  extended byorg.mule.mule.model.DynamicEntryPointDiscoveryTestCase
All Implemented Interfaces:
Test

public class DynamicEntryPointDiscoveryTestCase
extends org.mule.tck.model.AbstractEntryPointDiscoveryTestCase


Nested Class Summary
 
Nested classes inherited from class org.mule.tck.model.AbstractEntryPointDiscoveryTestCase
org.mule.tck.model.AbstractEntryPointDiscoveryTestCase.ComponentMethodMapping
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
logger
 
Constructor Summary
DynamicEntryPointDiscoveryTestCase()
           
 
Method Summary
 void _testArrayArgumentResolution()
          Test for proper resolution of a method that takes an array as argument.
 org.mule.tck.model.AbstractEntryPointDiscoveryTestCase.ComponentMethodMapping[] getComponentMappings()
           
 org.mule.umo.UMODescriptor getDescriptorToResolve(String className)
           
 org.mule.umo.model.UMOEntryPointResolver getEntryPointResolver()
           
 void testExplicitOverride()
          Test for proper resolution of an existing method specified as override
 void testFailEntryPointMultipleEventContextMatches()
          Tests entrypoint discovery when there is more than one discoverable method with UMOEventContext parameter.
 void testFailEntryPointMultiplePayloadMatches()
          Tests entrypoint discovery when there is more than one discoverable method with UMOEventContext 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 UMOEventContext, proceed to call this method, ignore the method override parameter.
 
Methods inherited from class org.mule.tck.model.AbstractEntryPointDiscoveryTestCase
testEntryPointDiscovery, testFailEntryPointDiscovery
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addTest, disposeManager, doSetUp, doTearDown, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicEntryPointDiscoveryTestCase

public DynamicEntryPointDiscoveryTestCase()
Method Detail

getComponentMappings

public org.mule.tck.model.AbstractEntryPointDiscoveryTestCase.ComponentMethodMapping[] getComponentMappings()

getDescriptorToResolve

public org.mule.umo.UMODescriptor getDescriptorToResolve(String className)
                                                  throws Exception
Throws:
Exception

getEntryPointResolver

public org.mule.umo.model.UMOEntryPointResolver getEntryPointResolver()

testFailEntryPointMultipleEventContextMatches

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

Throws:
Exception

testFailEntryPointMultiplePayloadMatches

public void testFailEntryPointMultiplePayloadMatches()
                                              throws Exception
Tests entrypoint discovery when there is more than one discoverable method with UMOEventContext 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 UMOEventContext, 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-2008 MuleSource, Inc.. All Rights Reserved.