org.mule.test.infrastructure.deployment
Class FakeMuleServer

java.lang.Object
  extended by org.mule.test.infrastructure.deployment.FakeMuleServer

public class FakeMuleServer
extends Object


Field Summary
protected static int DEPLOYMENT_TIMEOUT
           
static String FAKE_SERVER_DISABLE_LOG_REPOSITORY_SELECTOR
           
 
Constructor Summary
FakeMuleServer(String muleHomePath)
           
FakeMuleServer(String muleHomePath, List<MuleCoreExtension> intialCoreExtensions)
           
 
Method Summary
 void addAppArchive(URL url)
          Copies a given app archive to the apps folder for deployment.
 void addCoreExtension(MuleCoreExtension coreExtension)
           
 void addDeploymentListener(DeploymentListener listener)
           
 void addZippedPlugin(String resource)
           
 void assertDeploymentFailure(String appName)
           
 void assertDeploymentSuccess(String appName)
           
 void assertUndeploymentSuccess(DeploymentListener listener, String appName)
           
 void assertUndeploymentSuccess(String appName)
           
 void deploy(String resource)
           
 void deploy(String resource, String targetAppName)
           
 void deployAppFromClasspathFolder(String appFolder, String appName)
          Deploys an Application from a classpath folder
 void deployDomainFromClasspathFolder(String domainFolder, String domainName)
          Deploys a Domain from a classpath folder
 Application findApplication(String appName)
          Finds deployed application by name.
 File getAppsDir()
           
 File getLogsDir()
           
 File getMuleHome()
           
 File getPluginsDir()
           
 void removeDeploymentListener(DeploymentListener listener)
           
 void resetDeploymentListener()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FakeMuleServer

public FakeMuleServer(String muleHomePath)

FakeMuleServer

public FakeMuleServer(String muleHomePath,
                      List<MuleCoreExtension> intialCoreExtensions)
Method Detail

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 defined
domainName - 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 defined
appName - name of the domain to use as app artifact name


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.