org.mule.test.cookbook.quartz
Class TriggerNoArgsServiceMethodTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.tck.junit4.FunctionalTestCase
org.mule.test.cookbook.quartz.TriggerNoArgsServiceMethodTestCase
public class TriggerNoArgsServiceMethodTestCase
- extends FunctionalTestCase
The Quartz transport can be used to trigger an event to be received by the component based on the endpoint
configuration. In Mule an event is usually expected, however in this example we have a service component who's
service method doesn't take any parameters. The EventGeneratorJob
can be used to trigger a service method,
and by not specifying a 'payload' element there is no data to try and match to the service method, so Mule will
match a method with no arguments.
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, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, 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 |
TriggerNoArgsServiceMethodTestCase
public TriggerNoArgsServiceMethodTestCase()
getConfigResources
protected String getConfigResources()
- Specified by:
getConfigResources
in class FunctionalTestCase
testTrigger
public void testTrigger()
throws Exception
- Throws:
Exception
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.