use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample362 method testDbLookupReport.
public void testDbLookupReport() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Action of dbreport and dblookup mediators together");
result = client.requestStandardQuote(addUrl, trpUrl, null, "IBM", null);
assertTrue("Client did not get run successfully ", result.responseReceived());
log.info("Running test: Introduction to the dblookup mediator");
}
use of org.apache.synapse.samples.framework.clients.StockQuoteSampleClient in project wso2-synapse by wso2.
the class Sample431 method testCallOutSecurity.
public void testCallOutSecurity() {
log.info("Running test: Callout mediator with security");
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 Sample657 method testDistributedTransaction.
public void testDistributedTransaction() {
if (System.getProperty("java.naming.factory.initial") == null) {
System.setProperty("java.naming.factory.initial", "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
}
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Distributed Transaction Management");
SampleClientResult 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 Sample420 method testCache.
public void testCache() {
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Simple cache implemented on Synapse for the actual service");
result = client.requestStandardQuote(null, 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 Sample452 method testURLRewriteMultiple.
public void testURLRewriteMultiple() {
log.info("Running test: Conditional URL Rewriting with Multiple Rules");
String addUrl = "https://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
result = client.requestStandardQuote(addUrl, trpUrl, null, "IBM", null);
assertTrue("Client did not get run successfully ", result.responseReceived());
}
Aggregations