use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample433 method testCallOutDefinedEndpoint.
public void testCallOutDefinedEndpoint() {
log.info("Running test: Callout mediator - Invoke a service using a defined Endpoint");
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
result = client.requestStandardQuote(null, trpUrl, null, "IBM", null);
assertTrue("Client did not run successfully", result.responseReceived());
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample450 method testURLRewrite.
public void testURLRewrite() {
// String repo = getConfiguration().getClientConfig().getClientRepo();
String addUrl = "http://localhost:9000/soap/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Introduction to the URL Rewrite Mediator");
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 Sample50 method testRestToPox.
public void testRestToPox() {
String trpUrl = "http://localhost:8280/services/StockQuote";
log.info("Running test: HTTP REST request ");
StockQuoteSampleClient client = getStockQuoteClient();
SampleClientResult result = client.requestRestQuote(null, trpUrl, null, "IBM");
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample52 method testSessionLessLB.
public void testSessionLessLB() {
String addUrl = "http://localhost:8280/services/LBService1";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Session-less load balancing between 3 endpoints");
SampleClientResult result = client.sessionlessClient(addUrl, null, 100);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample10 method testDynamicEndPoints.
public void testDynamicEndPoints() {
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Dynamic EndPoints with Registry");
SampleClientResult result = client.requestStandardQuote(null, trpUrl, null, "IBM", null);
assertResponseReceived(result);
}
Aggregations