public abstract class FunctionalTestCase extends 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 |
|---|---|
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, workingDirectorychain, DEFAULT_TEST_TIMEOUT_SECS, name, TEST_CONNECTOR, TEST_CONNECTOR_LOCATION, TEST_PAYLOAD, TEST_TIMEOUT_SYSTEM_PROPERTY| Constructor and Description |
|---|
FunctionalTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
artifactProperties() |
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, awaitLatch, configureMuleContext, createMuleContext, createMuleContext, disposeContext, disposeContextPerTest, disposeOnlyMuleContext, 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, sleepFor, verifyAndStopSchedulersaddMockComponentLocation, clearRequestContext, clearTestCaseName, clearTestEvents, collectThreadNames, createTestTimeoutRule, dumpFilteredThreadsInTest, getFeatureFlaggingService, getMavenProjectVersionProperty, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isFailOnTimeout, isOffline, newEvent, nullPayloadEvent, takeTestCaseName, testEvent@Inject protected org.mule.runtime.api.artifact.Registry registry
public SystemProperty muleDisableAsyncRetryPolicyOnSourcesProperty
@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.event.CoreEvent runFlow(String flowName) throws Exception
flowName - the name of the flow to be executedMuleEventExceptionpublic boolean enableLazyInit()
public boolean disableXmlValidations()
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.