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"));
}
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"));
}
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"));
}
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"));
}
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"));
}
Aggregations