public class MuleInstallation
extends org.junit.rules.ExternalResource
public class MuleRuntimeInstallationTest {
@Rule
public MuleInstallation installation = new MuleInstallation("/path/to/packed/distribution.zip");
@Test
public void usingMuleRuntime() throws IOException {
String muleHomePath = installation.getMuleHome();
MuleProcessController mule = new MuleProcessController(muleHomePath);
mule.start();
}
}
| Constructor and Description |
|---|
MuleInstallation() |
MuleInstallation(String distribution) |
| 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() |
String |
getMuleHome() |
protected String location
public MuleInstallation()
public MuleInstallation(String distribution)
public String getMuleHome()
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 org.junit.rules.ExternalResourceprotected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourceCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.