public abstract class FunctionalTestCase
extends org.mule.tck.junit4.AbstractMuleContextTestCase
getBuilder() method of this class to return the type of builder you
want to use with your test.| Modifier and Type | Field and Description |
|---|---|
org.mule.tck.junit4.rule.SystemProperty |
muleDisableAsyncRetryPolicyOnSourcesProperty |
protected org.mule.runtime.api.artifact.Registry |
registry |
BLOCK_TIMEOUT, componentLocator, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, NON_GRACEFUL_SHUTDOWN_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testServicesConfigurationBuilder, testServicesConfigurationBuilderSupplier, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory| Constructor and Description |
|---|
FunctionalTestCase() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFlowAssertions() |
boolean |
disableXmlValidations() |
protected void |
doTearDown() |
boolean |
enableLazyInit() |
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 InputStream |
loadResource(String resourceName) |
protected String |
loadResourceAsString(String resourceName) |
protected org.mule.runtime.core.api.event.CoreEvent |
runFlow(String flowName)
Runs the given flow with a default event
|
protected void |
stopFlowConstruct(String flowName) |
addBuilders, configureMuleContext, createMuleContext, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDownAfterMuleContextDispose, doTestClassInjection, getAppleFlowComponentLocationAnnotations, getConfigurationResources, getDeploymentProperties, getEventBuilder, getFileInsideWorkingDirectory, getFlowComponentLocationAnnotations, getObjectSerializer, getPayload, getPayload, getPayloadAsBytes, getPayloadAsString, getSensingNullMessageProcessor, getStartUpRegistryObjects, getTriggerableMessageSource, getWorkingDirectory, 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@Inject protected org.mule.runtime.api.artifact.Registry registry
public org.mule.tck.junit4.rule.SystemProperty muleDisableAsyncRetryPolicyOnSourcesProperty
@Deprecated protected String getConfigResources()
protected org.mule.runtime.core.api.config.ConfigurationBuilder getBuilder()
throws Exception
getBuilder in class org.mule.tck.junit4.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 org.mule.tck.junit4.AbstractMuleContextTestCaseprotected void doTearDown()
throws Exception
doTearDown in class org.mule.tck.junit4.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.event.CoreEvent runFlow(String flowName) throws Exception
flowName - the name of the flow to be executedMuleEventExceptionpublic boolean enableLazyInit()
public boolean disableXmlValidations()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.