public abstract class ESBIntegrationTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected StockQuoteClient |
axis2Client |
protected org.wso2.carbon.automation.engine.context.AutomationContext |
context |
protected org.wso2.carbon.automation.engine.context.beans.ContextUrls |
contextUrls |
protected ESBTestCaseUtils |
esbUtils |
protected org.apache.commons.logging.Log |
log |
protected String |
sessionCookie |
protected org.apache.axiom.om.OMElement |
synapseConfiguration |
protected org.wso2.carbon.automation.engine.context.beans.Tenant |
tenantInfo |
protected org.wso2.carbon.automation.engine.context.beans.User |
userInfo |
protected org.wso2.carbon.automation.engine.context.TestUserMode |
userMode |
| Constructor and Description |
|---|
ESBIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addApi(org.apache.axiom.om.OMElement api) |
protected void |
addEndpoint(org.apache.axiom.om.OMElement endpointConfig) |
protected void |
addInboundEndpoint(org.apache.axiom.om.OMElement inboundEndpoint) |
protected void |
addInboundEndpointFromParams(org.apache.axiom.om.OMElement inboundEndpoint) |
protected void |
addLocalEntry(org.apache.axiom.om.OMElement localEntryConfig) |
protected void |
addMessageProcessor(org.apache.axiom.om.OMElement messageProcessorConfig) |
protected void |
addMessageStore(org.apache.axiom.om.OMElement messageStoreConfig) |
protected void |
addPriorityExecutor(org.apache.axiom.om.OMElement priorityExecutor) |
protected void |
addProxyService(org.apache.axiom.om.OMElement proxyConfig) |
protected void |
addScheduledTask(org.apache.axiom.om.OMElement task) |
protected void |
addSequence(org.apache.axiom.om.OMElement sequenceConfig) |
protected void |
addSequenceTemplate(org.apache.axiom.om.OMElement sequenceTemplate) |
protected void |
applySecurity(String serviceName,
int policyId,
String[] userGroups) |
protected void |
cleanup() |
protected void |
deleteInboundEndpointFromName(String name) |
protected void |
deleteInboundEndpoints() |
protected void |
deleteLibrary(String fullQualifiedName) |
protected void |
deleteProxyService(String proxyServiceName) |
protected void |
deleteSequence(String sequenceName) |
protected String[] |
getAllImports() |
protected String |
getApiInvocationURL(String apiName) |
protected String |
getBackEndServiceUrl(String serviceName) |
protected String |
getESBResourceLocation() |
protected String |
getMainSequenceURL() |
protected String |
getProxyServiceURLHttp(String proxyServiceName) |
protected String |
getProxyServiceURLHttps(String proxyServiceName) |
protected String |
getSessionCookie() |
protected org.wso2.carbon.application.mgt.synapse.stub.types.carbon.SynapseApplicationMetadata |
getSynapseAppData(String appName) |
protected String[] |
getUserRole() |
protected void |
init() |
protected void |
init(org.wso2.carbon.automation.engine.context.TestUserMode userMode) |
protected void |
isProxyDeployed(String proxyServiceName) |
protected boolean |
isRunningOnStratos() |
protected void |
loadESBConfigurationFromClasspath(String relativeFilePath) |
protected void |
loadSampleESBConfiguration(int sampleNo) |
protected String |
login(org.wso2.carbon.automation.engine.context.AutomationContext context) |
protected void |
reloadSessionCookie()
This method to be used after restart the server to update the sessionCookie variable.
|
protected org.apache.axiom.om.OMElement |
replaceEndpoints(String relativePathToConfigFile,
String serviceName,
String port) |
protected DataHandler |
setEndpoints(DataHandler dataHandler) |
protected org.apache.axiom.om.OMElement |
setEndpoints(org.apache.axiom.om.OMElement synapseConfig) |
protected void |
updateConnectorStatus(String libQName,
String libName,
String packageName,
String status) |
protected void |
updateESBConfiguration(org.apache.axiom.om.OMElement synapseConfig) |
protected void |
updateESBRegistry(String resourcePath) |
protected void |
updateInboundEndpoint(org.apache.axiom.om.OMElement inboundEndpoint) |
protected void |
uploadCapp(String appname,
DataHandler dataHandler) |
protected void |
uploadConnector(String repoLocation,
String strFileName) |
protected org.apache.commons.logging.Log log
protected StockQuoteClient axis2Client
protected org.wso2.carbon.automation.engine.context.beans.ContextUrls contextUrls
protected String sessionCookie
protected org.apache.axiom.om.OMElement synapseConfiguration
protected ESBTestCaseUtils esbUtils
protected org.wso2.carbon.automation.engine.context.AutomationContext context
protected org.wso2.carbon.automation.engine.context.beans.Tenant tenantInfo
protected org.wso2.carbon.automation.engine.context.beans.User userInfo
protected org.wso2.carbon.automation.engine.context.TestUserMode userMode
protected void init(org.wso2.carbon.automation.engine.context.TestUserMode userMode)
throws Exception
Exceptionprotected String getMainSequenceURL()
protected void loadSampleESBConfiguration(int sampleNo)
throws Exception
Exceptionprotected void loadESBConfigurationFromClasspath(String relativeFilePath) throws Exception
Exceptionprotected void deleteLibrary(String fullQualifiedName) throws org.wso2.carbon.mediation.library.stub.MediationLibraryAdminServiceException, RemoteException
org.wso2.carbon.mediation.library.stub.MediationLibraryAdminServiceExceptionRemoteExceptionprotected String[] getAllImports() throws RemoteException
RemoteExceptionprotected void updateESBConfiguration(org.apache.axiom.om.OMElement synapseConfig)
throws Exception
Exceptionprotected void addProxyService(org.apache.axiom.om.OMElement proxyConfig)
throws Exception
Exceptionprotected void addInboundEndpoint(org.apache.axiom.om.OMElement inboundEndpoint)
throws Exception
Exceptionprotected void addInboundEndpointFromParams(org.apache.axiom.om.OMElement inboundEndpoint)
throws Exception
Exceptionprotected void updateInboundEndpoint(org.apache.axiom.om.OMElement inboundEndpoint)
throws Exception
Exceptionprotected void deleteInboundEndpointFromName(String name) throws Exception
Exceptionprotected void isProxyDeployed(String proxyServiceName) throws Exception
Exceptionprotected void deleteProxyService(String proxyServiceName) throws Exception
Exceptionprotected void deleteSequence(String sequenceName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionprotected void addSequence(org.apache.axiom.om.OMElement sequenceConfig)
throws Exception
Exceptionprotected void uploadConnector(String repoLocation, String strFileName) throws MalformedURLException, RemoteException
MalformedURLExceptionRemoteExceptionprotected void updateConnectorStatus(String libQName, String libName, String packageName, String status) throws RemoteException
RemoteExceptionprotected void addEndpoint(org.apache.axiom.om.OMElement endpointConfig)
throws Exception
Exceptionprotected void addLocalEntry(org.apache.axiom.om.OMElement localEntryConfig)
throws Exception
Exceptionprotected void addMessageProcessor(org.apache.axiom.om.OMElement messageProcessorConfig)
throws Exception
Exceptionprotected void addMessageStore(org.apache.axiom.om.OMElement messageStoreConfig)
throws Exception
Exceptionprotected void addSequenceTemplate(org.apache.axiom.om.OMElement sequenceTemplate)
throws Exception
Exceptionprotected void addPriorityExecutor(org.apache.axiom.om.OMElement priorityExecutor)
throws Exception
Exceptionprotected void addScheduledTask(org.apache.axiom.om.OMElement task)
throws Exception
Exceptionprotected void applySecurity(String serviceName, int policyId, String[] userGroups) throws org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionException, RemoteException, InterruptedException
org.wso2.carbon.security.mgt.stub.config.SecurityAdminServiceSecurityConfigExceptionExceptionRemoteExceptionInterruptedExceptionprotected void updateESBRegistry(String resourcePath) throws Exception
Exceptionprotected boolean isRunningOnStratos()
throws XPathExpressionException
XPathExpressionExceptionprotected String getESBResourceLocation()
protected String getBackEndServiceUrl(String serviceName) throws XPathExpressionException
XPathExpressionExceptionprotected void uploadCapp(String appname, DataHandler dataHandler) throws RemoteException
RemoteExceptionprotected org.wso2.carbon.application.mgt.synapse.stub.types.carbon.SynapseApplicationMetadata getSynapseAppData(String appName) throws RemoteException, org.wso2.carbon.application.mgt.synapse.stub.ExceptionException
RemoteExceptionorg.wso2.carbon.application.mgt.synapse.stub.ExceptionExceptionprotected org.apache.axiom.om.OMElement setEndpoints(org.apache.axiom.om.OMElement synapseConfig)
throws XMLStreamException,
XPathExpressionException
protected DataHandler setEndpoints(DataHandler dataHandler) throws XMLStreamException, IOException, XPathExpressionException
protected org.apache.axiom.om.OMElement replaceEndpoints(String relativePathToConfigFile, String serviceName, String port) throws XMLStreamException, FileNotFoundException, XPathExpressionException
protected String login(org.wso2.carbon.automation.engine.context.AutomationContext context) throws IOException, XPathExpressionException, URISyntaxException, SAXException, XMLStreamException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
IOExceptionXPathExpressionExceptionURISyntaxExceptionSAXExceptionXMLStreamExceptionorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionExceptionprotected String getSessionCookie()
protected String[] getUserRole()
Copyright © 2015 WSO2 Inc. All rights reserved.