org.wso2.carbon.integration.common.extensions.carbonserver
Class MultipleServersManager
java.lang.Object
org.wso2.carbon.integration.common.extensions.carbonserver.MultipleServersManager
public class MultipleServersManager
- extends Object
A container for multiple Carbon server instances.
How to use this class:
1. Implement a TestServerManager instance for different types of servers. e.g. AS, ESB etc
2. Create a Class with @BeforeSuite & @AfterSuite or @BeforeClass & @AfterClass annotations.
In @BeforeSuite/@BeforeClass, you can call startServers(TestServerManager...)
In @AfterSuite/@AfterClass,, you can call stopAllServers()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipleServersManager
public MultipleServersManager()
startServers
public void startServers(TestServerManager... serverManagers)
throws Exception
- Start a set of Carbon servers
- Parameters:
serverManagers - vararg which specifies a TestServerManager instance per Carbon server
- Throws:
IOException - If an error occurs while copying deployment artifacts into Carbon servers
Exception
stopAllServers
public void stopAllServers()
throws Exception
- Stop all servers started by this org.wso2.carbon.automation.core.MultipleServersManager
- Throws:
Exception - If an error occurs while stopping servers
Copyright © 2015 WSO2. All rights reserved.