use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class DynamicSequenceTestCase method testSequenceMediatorWithDynamicSequence.
public void testSequenceMediatorWithDynamicSequence() {
StockQuoteSampleClient client = getStockQuoteClient();
client.addHttpHeader("Sequence", "sendToStockQuoteServiceSequence");
SampleClientResult result = client.requestStandardQuote("http://localhost:8280/services/sequenceMediatorDynamicSequenceTestProxy", null, null, "WSO2", null);
assertTrue("Response not received", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample352 method testAccessingAPIUsingScripting.
public void testAccessingAPIUsingScripting() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Accessing Synapse message context API methods using scripting language");
result = client.requestStandardQuote(addUrl, trpUrl, null, "IBM", null);
assertTrue("Client did not get run successfully ", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample353 method testScriptMediationWithRuby.
public void testScriptMediationWithRuby() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Using Ruby scripts for mediation");
result = client.requestCustomQuote(addUrl, trpUrl, null, "IBM");
assertTrue("Client did not get run successfully ", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class XQueryIntegrationTestCase method testXQueryTransformation.
public void testXQueryTransformation() throws AxisFault {
StockQuoteSampleClient client = getStockQuoteClient();
OMElement response = client.sendCustomQuoteRequest("http://localhost:8280/services/xQueryMediatorIntegrationTestProxy", null, null, "WSO2");
assertNotNull("Response is null", response);
assertTrue("Invalid response received", response.toString().contains("WSO2"));
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class FileSystemLocalEntryXsltTransformationTestCase method testFileSystemLocalEntryXsltTransformation.
public void testFileSystemLocalEntryXsltTransformation() throws AxisFault {
StockQuoteSampleClient client = getStockQuoteClient();
OMElement response = client.sendCustomQuoteRequest("http://localhost:8280/services/xsltInFileSystemTestProxy", null, null, "IBM");
assertNotNull("Response is null", response);
assertTrue("Invalid response received", response.toString().contains("Code"));
assertTrue("Invalid response received", response.toString().contains("IBM"));
}
Aggregations