public class TransientLifecycleTrackerComponentFunctionalTestCase 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 |
---|
TransientLifecycleTrackerComponentFunctionalTestCase(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 NOTE: injecting service/muleContext only once since this is
a pooled singleton
|
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, runFlowNonBlocking, runFlowNonBlocking, runFlowNonBlocking, runFlowWithPayloadAndExpect, runSchedulersOnce, stopFlowConstruct, stopFlowSchedulers, testFlow, testFlow, testFlowNonBlocking, testFlowNonBlocking
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getConfigurationResources, getFileInsideWorkingDirectory, getNonBlockingResponse, getNonBlockingTestEventUsingFlow, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, 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 TransientLifecycleTrackerComponentFunctionalTestCase(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–2016 MuleSoft, Inc.. All rights reserved.