public abstract class FunctionalTestCase extends AbstractMuleContextTestCase
getBuilder() method of this class to return the type of builder you
want to use with your test.BLOCK_TIMEOUT, callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, REACTOR_BLOCK_TIMEOUT_EXCEPTION_MESSAGE, RECEIVE_TIMEOUT, TEST_MESSAGE, testServicesConfigurationBuilder, testServicesConfigurationBuilderSupplier, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectoryDEFAULT_TEST_TIMEOUT_SECS, globalTimeout, name, TEST_CONNECTOR, TEST_CONNECTOR_LOCATION, TEST_PAYLOAD, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME| Constructor and Description |
|---|
FunctionalTestCase() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFlowAssertions() |
protected void |
doTearDown() |
protected FlowRunner |
flowRunner(String flowName)
Initializes a builder to construct an event and the running context to run it through a flow.
|
protected ConfigurationBuilder |
getBuilder() |
protected Object |
getComponent(FlowConstruct flowConstruct)
Returns an instance of the service's component object.
|
protected Object |
getComponent(String serviceName)
Returns an instance of the service's component object.
|
protected String |
getConfigFile() |
protected String[] |
getConfigFiles() |
protected String |
getConfigResources()
Deprecated.
use getConfigFile instead.
|
protected ClassLoader |
getExecutionClassLoader() |
protected FlowConstruct |
getFlowConstruct(String flowName) |
protected FunctionalTestComponent |
getFunctionalTestComponent(String serviceName)
A convenience method to get a type-safe reference to the FunctionTestComponent
|
protected MessageProcessorChain |
getSubFlow(String subflowName) |
protected InputStream |
loadResource(String resourceName) |
protected String |
loadResourceAsString(String resourceName) |
protected Flow |
lookupFlowConstruct(String name)
Retrieve a flow by name from the registry
|
protected Event |
runFlow(String flowName)
Runs the given flow with a default event
|
protected void |
stopFlowConstruct(String flowName) |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, eventBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getStartUpProperties, getTestFlowWithComponent, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, mockExprExecutorService, mockHttpService, process, recordSchedulersOnInit, setDisposeContextPerClass, setStartContext, setUpMuleContext, verifyAndStopSchedulersclearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getMavenProjectVersionProperty, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, newEvent, nullPayloadEvent, takeTestCaseName, testEvent@Deprecated protected String getConfigResources()
protected ConfigurationBuilder getBuilder() throws Exception
getBuilder in class AbstractMuleContextTestCaseExceptionprotected String getConfigFile()
protected String[] getConfigFiles()
protected Object getComponent(String serviceName) throws Exception
Exceptionprotected Object getComponent(FlowConstruct flowConstruct) throws Exception
Exceptionprotected FunctionalTestComponent getFunctionalTestComponent(String serviceName) throws Exception
serviceName - service name as declared in the configExceptionFunctionalTestComponentprotected FlowConstruct getFlowConstruct(String flowName) throws Exception
Exceptionprotected ClassLoader getExecutionClassLoader()
getExecutionClassLoader in class AbstractMuleContextTestCaseprotected void doTearDown()
throws Exception
doTearDown in class AbstractMuleContextTestCaseExceptionprotected String loadResourceAsString(String resourceName) throws IOException
IOExceptionprotected InputStream loadResource(String resourceName) throws IOException
IOExceptionprotected void stopFlowConstruct(String flowName) throws Exception
Exceptionprotected FlowRunner flowRunner(String flowName)
flowName - FlowRunnerprotected Event runFlow(String flowName) throws Exception
flowName - the name of the flow to be executedMuleEventExceptionprotected Flow lookupFlowConstruct(String name)
name - Name of the flow to retrieveprotected MessageProcessorChain getSubFlow(String subflowName)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.