Search in sources :

Example 51 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class PropertyIntegrationAxis2ClientScopeTestCase method testIntVal.

public void testIntVal() throws Exception {
    StockQuoteSampleClient client = getStockQuoteClient();
    OMElement response = client.sendStandardQuoteRequest("http://localhost:8280/services/propertyIntAxis2ClientTestProxy", null, null, "Random Symbol", null);
    assertTrue("Integer Property Not Set in the Axis2-client scope!", response.toString().contains("123"));
}
Also used : StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient) OMElement(org.apache.axiom.om.OMElement)

Example 52 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class PropertyIntegrationAxis2ClientScopeTestCase method testFloatVal.

public void testFloatVal() throws Exception {
    StockQuoteSampleClient client = getStockQuoteClient();
    OMElement response = client.sendStandardQuoteRequest("http://localhost:8280/services/propertyFloatAxis2ClientTestProxy", null, null, "Random Symbol", null);
    assertTrue("Float Property Not Set in the Axis2-client scope!", response.toString().contains("123.123"));
}
Also used : StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient) OMElement(org.apache.axiom.om.OMElement)

Example 53 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class PropertyIntegrationAxis2ClientScopeTestCase method testStringVal.

public void testStringVal() throws Exception {
    StockQuoteSampleClient client = getStockQuoteClient();
    OMElement response = client.sendStandardQuoteRequest("http://localhost:8280/services/propertyStringAxis2ClientTestProxy", null, null, "Random Symbol", null);
    assertTrue("String Property Not Set in the Axis2-client scope!", response.toString().contains("WSO2 Lanka"));
}
Also used : StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient) OMElement(org.apache.axiom.om.OMElement)

Example 54 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class PropertyIntegrationAxis2ClientScopeTestCase method testBooleanVal.

public void testBooleanVal() throws Exception {
    StockQuoteSampleClient client = getStockQuoteClient();
    OMElement response = client.sendStandardQuoteRequest("http://localhost:8280/services/propertyBooleanAxis2ClientTestProxy", null, null, "Random Symbol", null);
    assertTrue("Boolean Property Not Set in the Axis2-client scope!", response.toString().contains("true"));
}
Also used : StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient) OMElement(org.apache.axiom.om.OMElement)

Example 55 with StockQuoteSampleClient

use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.

the class PropertyIntegrationAxis2ClientScopeTestCase method testDoubleVal.

public void testDoubleVal() throws Exception {
    StockQuoteSampleClient client = getStockQuoteClient();
    OMElement response = client.sendStandardQuoteRequest("http://localhost:8280/services/propertyDoubleAxis2ClientTestProxy", null, null, "Random Symbol", null);
    assertTrue("Double Property Not Set in the Axis2-client scope!", response.toString().contains("123123.123123"));
}
Also used : StockQuoteSampleClient(org.apache.synapse.samples.framework.clients.StockQuoteSampleClient) OMElement(org.apache.axiom.om.OMElement)

Aggregations

StockQuoteSampleClient (org.apache.synapse.samples.framework.clients.StockQuoteSampleClient)99 SampleClientResult (org.apache.synapse.samples.framework.SampleClientResult)45 OMElement (org.apache.axiom.om.OMElement)23 AxisFault (org.apache.axis2.AxisFault)5 QName (javax.xml.namespace.QName)4 Axis2BackEndServerController (org.apache.synapse.samples.framework.Axis2BackEndServerController)1