public class EmbeddedTestHelper extends Object
| Constructor and Description |
|---|
EmbeddedTestHelper(boolean enterprise,
boolean forceUpdateSnapshots,
boolean ignoreArtifactDescriptorRepositories) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
org.mule.runtime.module.embedded.api.EmbeddedContainer |
getContainer() |
File |
getContainerFolder() |
File |
getFolderForApplication(String applicationFolderName) |
File |
getFolderForDomain(String domainFolderName) |
File |
getPackagedApplication(File applicationFolder) |
void |
recreateContainerFolder() |
void |
test(Runnable runnable)
Sets the proper context for creating an embedded container
|
void |
testWithDefaultSettings(Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer.EmbeddedContainerBuilder> embeddedContainerConfigurer,
Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer> test)
Preconfigures the
EmbeddedContainer with default settings |
void |
testWithEmbeddedNotStarted(Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer.EmbeddedContainerBuilder> embeddedContainerConfigurer,
Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer> test) |
public EmbeddedTestHelper(boolean enterprise,
boolean forceUpdateSnapshots,
boolean ignoreArtifactDescriptorRepositories)
public void recreateContainerFolder()
public void test(Runnable runnable)
runnable - a task that will create a EmbeddedContainer for testing
purposes.public void testWithDefaultSettings(Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer.EmbeddedContainerBuilder> embeddedContainerConfigurer, Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer> test)
EmbeddedContainer with default settingsembeddedContainerConfigurer - function to add configuration to the embedded containertest - function that run the testspublic void testWithEmbeddedNotStarted(Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer.EmbeddedContainerBuilder> embeddedContainerConfigurer, Consumer<org.mule.runtime.module.embedded.api.EmbeddedContainer> test)
public File getContainerFolder()
public void dispose()
public File getPackagedApplication(File applicationFolder) throws Exception
Exceptionpublic org.mule.runtime.module.embedded.api.EmbeddedContainer getContainer()
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.