public class MBIntegrationBaseTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.wso2.carbon.automation.engine.context.AutomationContext |
automationContext |
protected String |
backendURL |
protected org.apache.commons.logging.Log |
log |
protected org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager |
serverManager |
| Constructor and Description |
|---|
MBIntegrationBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
getAMQPPort()
Returns AMQP port based on automation.xml configurations
|
protected String |
getBrokerHost()
Returns broker hostname based on automation.xml configurations
|
protected Integer |
getHttpsServerPort()
Returns wso2 https server port based on automation.xml configurations
|
protected Integer |
getJMXServerPort()
Returns JMX RMI Server port based on automation.xml configurations
|
protected Integer |
getMQTTPort()
Returns MQTT port based on automation.xml configurations
|
protected Integer |
getRMIRegistryPort()
Returns JMX RMI Registry port based on automation.xml configurations
|
protected Integer |
getSecureAMQPPort()
Returns AMQP port based on automation.xml configurations
|
protected org.wso2.carbon.automation.engine.context.beans.User |
getSuperTenantAdminUser()
Return super admin
User object |
protected void |
init(org.wso2.carbon.automation.engine.context.TestUserMode userMode)
Initialize the base test by initializing the automation context.
|
protected void |
restartServer()
Gracefully restart the current server which was deployed by the test suit.
|
protected void |
restartServerWithH2MemMode()
Restart the testing MB server in In-Memory H2 database mode by applying In-Memory database configurations
in andes-virtualhosts-H2-mem.xml file.
|
protected org.apache.commons.logging.Log log
protected org.wso2.carbon.automation.engine.context.AutomationContext automationContext
protected String backendURL
protected org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager serverManager
protected void init(org.wso2.carbon.automation.engine.context.TestUserMode userMode)
throws XPathExpressionException
userMode - The testing user modeXPathExpressionExceptionprotected void restartServerWithH2MemMode()
throws Exception
Exceptionprotected void restartServer()
throws Exception
Exceptionprotected Integer getHttpsServerPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionprotected Integer getAMQPPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionprotected String getBrokerHost() throws XPathExpressionException
XPathExpressionException - if initialization errorprotected org.wso2.carbon.automation.engine.context.beans.User getSuperTenantAdminUser()
throws XPathExpressionException
User objectXPathExpressionException - if error occurred while reading valuesprotected Integer getSecureAMQPPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionprotected Integer getMQTTPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionprotected Integer getJMXServerPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionprotected Integer getRMIRegistryPort() throws XPathExpressionException
ExceptionXPathExpressionExceptionCopyright © 2019 WSO2. All rights reserved.