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, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, 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 org.mule.functional.api.flow.FlowRunner |
flowRunner(String flowName)
Initializes a builder to construct an event and the running context to run it through a flow.
|
protected org.mule.runtime.core.api.config.ConfigurationBuilder |
getBuilder() |
protected String |
getConfigFile() |
protected String[] |
getConfigFiles() |
protected String |
getConfigResources()
Deprecated.
use getConfigFile instead.
|
protected ClassLoader |
getExecutionClassLoader() |
protected org.mule.runtime.core.api.construct.FlowConstruct |
getFlowConstruct(String flowName) |
protected org.mule.runtime.core.api.processor.MessageProcessorChain |
getSubFlow(String subflowName) |
protected InputStream |
loadResource(String resourceName) |
protected String |
loadResourceAsString(String resourceName) |
protected org.mule.runtime.core.api.construct.Flow |
lookupFlowConstruct(String name)
Retrieve a flow by name from the registry
|
protected org.mule.runtime.core.api.InternalEvent |
runFlow(String flowName)
Runs the given flow with a default event
|
protected void |
stopFlowConstruct(String flowName) |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, createTestFlow, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, doTestClassInjection, eventBuilder, getAppleFlowComponentLocationAnnotations, getConfigurationResources, getEventBuilder, getFakeFlowConstruct, getFileInsideWorkingDirectory, getFlowComponentLocationAnnotations, getNamedTestFlow, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getStartUpProperties, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, mockExprExecutorService, mockHttpService, process, recordSchedulersOnInit, setDisposeContextPerClass, setStartContext, setUpMuleContext, verifyAndStopSchedulersaddMockComponentLocation, clearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getMavenProjectVersionProperty, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, newEvent, nullPayloadEvent, takeTestCaseName, testEvent@Deprecated protected String getConfigResources()
protected org.mule.runtime.core.api.config.ConfigurationBuilder getBuilder()
throws Exception
getBuilder in class AbstractMuleContextTestCaseExceptionprotected String getConfigFile()
protected String[] getConfigFiles()
protected org.mule.runtime.core.api.construct.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 org.mule.functional.api.flow.FlowRunner flowRunner(String flowName)
flowName - FlowRunnerprotected org.mule.runtime.core.api.InternalEvent runFlow(String flowName) throws Exception
flowName - the name of the flow to be executedMuleEventExceptionprotected org.mule.runtime.core.api.construct.Flow lookupFlowConstruct(String name)
name - Name of the flow to retrieveprotected org.mule.runtime.core.api.processor.MessageProcessorChain getSubFlow(String subflowName)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.