use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample752 method testLoadBalancingWithEndpointTemplates.
public void testLoadBalancingWithEndpointTemplates() {
String trpUrl = "http://localhost:8280/services/LBProxy";
log.info("Running test: Load Balancing with Endpoint Templates");
StockQuoteSampleClient client = getStockQuoteClient();
SampleClientResult result = client.statefulClient(null, trpUrl, 100);
assertTrue("Client did not run successfully ", result.responseReceived());
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample51 method testSWAOptimization.
public void testSWAOptimization() {
String ep = "http://localhost:8280/services/MTOMSwASampleService";
String currentLocation = System.getProperty("user.dir") + File.separator;
String filename = FilenameUtils.normalize(currentLocation + "repository/conf/sample/resources/mtom/asf-logo.gif");
MTOMSwASampleClient client = getMTOMSwASampleClient();
log.info("Running test:SwA optimization and request/response correlation ");
SampleClientResult result = client.sendUsingSWA(filename, ep);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample51 method testMTOMOptimization.
public void testMTOMOptimization() {
String ep = "http://localhost:8280/services/MTOMSwASampleService";
String currentLocation = System.getProperty("user.dir") + File.separator;
String filename = FilenameUtils.normalize(currentLocation + "repository/conf/sample/resources/mtom/asf-logo.gif");
MTOMSwASampleClient client = getMTOMSwASampleClient();
log.info("Running test: MTOM optimization and request/response correlation ");
SampleClientResult result = client.sendUsingMTOM(filename, ep);
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample17 method testPayloadFactoryMediator.
public void testPayloadFactoryMediator() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Transforming message content with Payload Factory mediator");
SampleClientResult result = client.requestCustomQuote(addUrl, trpUrl, null, "IBM");
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample363 method testReusableConnectionPools.
public void testReusableConnectionPools() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Reusable Database Connection Pools");
SampleClientResult result = client.requestStandardQuote(addUrl, trpUrl, null, "IBM", null);
assertTrue("Client did not get run successfully ", result.responseReceived());
}
Aggregations