public class LifecycleTrackerComponentFunctionalTestCase extends AbstractServiceAndFlowTestCase
AbstractServiceAndFlowTestCase.ConfigVariant
configResources, variant
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
LifecycleTrackerComponentFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
String configResources) |
Modifier and Type | Method and Description |
---|---|
static Collection<Object[]> |
parameters() |
void |
testMulePooledPrototypeServiceLifecycle()
ASSERT: - Mule lifecycle methods invoked - Service and muleContext injected
(Component implements ServiceAware/MuleContextAware)
|
void |
testMulePooledSingletonServiceLifecycle()
ASSERT: - Mule lifecycle methods invoked each time singleton is used to create
new object in pool - Service and muleContext injected each time singleton is
used to create new object in pool (Component implements
ServiceAware/MuleContextAware)
|
void |
testMulePrototypeServiceLifecycle()
ASSERT: - Mule lifecycle methods invoked - Service and muleContext injected
(Component implements ServiceAware/MuleContextAware)
|
void |
testSingletonServiceLifecycle()
ASSERT: - Mule lifecycle methods invoked - Service and muleContext injected
(Component implements ServiceAware/MuleContextAware)
|
void |
testSpringBeanService2Lifecycle()
ASSERT: - Mule stop/start lifecycle methods invoked - Mule initialize/dipose
lifecycle methods NOT invoked - Spring lifecycle methods NOT invoked - Service
and muleContext injected (Component implements ServiceAware/MuleContextAware)
NOTE: muleContext is injected twice, once by registry and once by
lifecycleAdaptor
|
void |
testSpringBeanServiceLifecycle()
ASSERT: - Mule stop/start lifecycle methods invoked - Mule initialize/dipose
lifecycle methods NOT invoked - Spring lifecycle methods invoked - Service and
muleContext injected (Component implements ServiceAware/MuleContextAware)
NOTE: muleContext is injected twice, once by registry and once by
lifecycleAdaptor
|
doSetUp, doSetUpForFlow, doSetUpForService, getConfigFile, getConfigFiles, getTestHeader
clearFlowAssertions, getBuilder, getComponent, getComponent, getConfigResources, getFlowConstruct, getFunctionalTestComponent, getSubFlow, loadResource, loadResourceAsString, lookupFlowConstruct, runFlow, runFlow, runFlow, runFlowAndExpect, runFlowAndExpectProperty, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public LifecycleTrackerComponentFunctionalTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources)
public static Collection<Object[]> parameters()
public void testSpringBeanServiceLifecycle() throws Exception
Exception
public void testSpringBeanService2Lifecycle() throws Exception
Exception
public void testSingletonServiceLifecycle() throws Exception
Exception
public void testMulePrototypeServiceLifecycle() throws Exception
Exception
public void testMulePooledPrototypeServiceLifecycle() throws Exception
Exception
public void testMulePooledSingletonServiceLifecycle() throws Exception
Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.