use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample8 method testRegistryAndXSLTMediator.
public void testRegistryAndXSLTMediator() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Introduction to static and dynamic registry resources, and using XSLT transformations");
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 Sample751 method testSplitAggregate.
public void testSplitAggregate() throws Exception {
String addUrl = "http://localhost:8280/services/SplitAggregateProxy";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Message Split Aggregate Using Templates");
SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "IBM", null);
assertTrue("Invalid result received", result.responseReceived());
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample13 method testDualQuote.
public void testDualQuote() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Dual channel invocation through Synapse");
SampleClientResult result = client.requestDualQuote(addUrl, trpUrl, null, "IBM");
assertResponseReceived(result);
}
use of org.apache.synapse.samples.framework.SampleClientResult in project wso2-synapse by wso2.
the class Sample16 method testDynamicStaticKeys.
public void testDynamicStaticKeys() {
String addUrl = "http://localhost:9000/services/SimpleStockQuoteService";
String trpUrl = "http://localhost:8280/";
StockQuoteSampleClient client = getStockQuoteClient();
log.info("Running test: Introduction to dynamic and static keys ");
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 Sample264 method testTwoWayMessagesWithJMS.
public void testTwoWayMessagesWithJMS() throws Exception {
System.setProperty("java.naming.provider.url", "tcp://localhost:62626");
String addUrl = "http://localhost:8280/services/StockQuoteProxy";
StockQuoteSampleClient client = getStockQuoteClient();
SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "MSFT", null);
assertTrue("Response not received", result.responseReceived());
}
Aggregations