org.mule.test.infrastructure.deployment
Class FakeMuleServer
java.lang.Object
org.mule.test.infrastructure.deployment.FakeMuleServer
public class FakeMuleServer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEPLOYMENT_TIMEOUT
protected static final int DEPLOYMENT_TIMEOUT
- See Also:
- Constant Field Values
FAKE_SERVER_DISABLE_LOG_REPOSITORY_SELECTOR
public static final String FAKE_SERVER_DISABLE_LOG_REPOSITORY_SELECTOR
- See Also:
- Constant Field Values
FakeMuleServer
public FakeMuleServer(String muleHomePath)
FakeMuleServer
public FakeMuleServer(String muleHomePath,
List<MuleCoreExtension> intialCoreExtensions)
stop
public void stop()
throws MuleException
- Throws:
MuleException
start
public void start()
throws IOException,
MuleException
- Throws:
IOException
MuleException
assertDeploymentSuccess
public void assertDeploymentSuccess(String appName)
assertDeploymentFailure
public void assertDeploymentFailure(String appName)
assertUndeploymentSuccess
public void assertUndeploymentSuccess(String appName)
assertUndeploymentSuccess
public void assertUndeploymentSuccess(DeploymentListener listener,
String appName)
addAppArchive
public void addAppArchive(URL url)
throws IOException
- Copies a given app archive to the apps folder for deployment.
- Throws:
IOException
deploy
public void deploy(String resource)
throws IOException
- Throws:
IOException
deploy
public void deploy(String resource,
String targetAppName)
throws IOException
- Throws:
IOException
addZippedPlugin
public void addZippedPlugin(String resource)
throws IOException,
URISyntaxException
- Throws:
IOException
URISyntaxException
getMuleHome
public File getMuleHome()
getLogsDir
public File getLogsDir()
getAppsDir
public File getAppsDir()
getPluginsDir
public File getPluginsDir()
resetDeploymentListener
public void resetDeploymentListener()
addCoreExtension
public void addCoreExtension(MuleCoreExtension coreExtension)
addDeploymentListener
public void addDeploymentListener(DeploymentListener listener)
removeDeploymentListener
public void removeDeploymentListener(DeploymentListener listener)
findApplication
public Application findApplication(String appName)
- Finds deployed application by name.
- Returns:
- the application if found, null otherwise
deployDomainFromClasspathFolder
public void deployDomainFromClasspathFolder(String domainFolder,
String domainName)
- Deploys a Domain from a classpath folder
- Parameters:
domainFolder - folder in which the domain is defineddomainName - name of the domain to use as domain artifact name
deployAppFromClasspathFolder
public void deployAppFromClasspathFolder(String appFolder,
String appName)
- Deploys an Application from a classpath folder
- Parameters:
appFolder - folder in which the app is definedappName - name of the domain to use as app artifact name
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.