public class MuleDeployment extends MuleInstallation
public class MuleApplicationTestCase {
@ClassRule
public static MuleDeployment deployment =
builder().withApplications("/path/to/application.zip").withProperty("-M-Dproperty", "value").timeout(120).deploy();
@Test
public void useApplication() throws IOException {
// App is deployed
// This code exercises the application
}
}
| System Property | Default Value | Description |
| mule.test.deleteOnExit | true | When false, keeps the used Mule Server under target/server/TEST_NAME |
| mule.test.stopOnExit | true | When false, keeps the used Mule Server running |
| mule.test.deployment.timeout | 60000 | Timeout for starting Mule (in milliseconds) |
| mule.test.debug | false | Mule server wait for remote debugger attachment. |
| Modifier and Type | Class and Description |
|---|---|
static class |
MuleDeployment.Builder |
location| Modifier | Constructor and Description |
|---|---|
protected |
MuleDeployment() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected void |
before() |
static MuleDeployment.Builder |
builder() |
getMuleHomepublic static MuleDeployment.Builder builder()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleapply in class MuleInstallationprotected void before()
throws Throwable
before in class MuleInstallationThrowableprotected void after()
after in class MuleInstallationCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.