use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample0 method testSynapseAsHTTPProxy.
public void testSynapseAsHTTPProxy() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String prxUrl = "http://localhost:8280/";
log.info("Running test: Using Synapse as a HTTP Proxy");
SampleClientResult result = getStockQuoteClient().requestStandardQuote(addUrl, null, prxUrl, "IBM", null);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample1 method testDumbClientMode.
public void testDumbClientMode() {
String trpUrl = "http://localhost:8280/services/StockQuote";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Dumb Client mode");
SampleClientResult result = client.requestStandardQuote(null, trpUrl, null, "IBM", null);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult 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.SampleClientResult 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.SampleClientResult 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