Package org.apache.synapse.samples.framework

Examples of org.apache.synapse.samples.framework.SampleClientResult



    public void testBasicProxy() {
        String addUrl = "http://localhost:8280/services/StockQuoteProxy";
        log.info("Running test: Introduction to proxy services");
        SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "IBM" ,null);
        assertTrue("Client did not get run successfully ", result.responseReceived());
    }
View Full Code Here



    public void testServiceIntegration() {
        String addUrl = "http://localhost:8280/services/StockQuoteProxy";
        log.info("Running test: Service Integration with specifying the receiving sequence");
        SampleClientResult result = client.requestStandardQuote(addUrl, null, null, "IBM" ,null);
        assertTrue("Client did not get run successfully ", result.responseReceived());
    }
View Full Code Here

    public void testDualQuote() {
        String addUrl = "http://localhost:8280/services/StockQuoteProxy";

        log.info("Running test: Dual channel invocation on both client side and server " +
                "side of Synapse with Proxy Services");
        SampleClientResult result = client.requestDualQuote(addUrl, null, null, "IBM");
        assertTrue("Client did not get run successfully ", result.responseReceived());
    }
View Full Code Here

    public void testsRoutingWithoutProcessingSecurityHeaders() {
        String url = "http://localhost:8280/services/StockQuoteProxy";
        String policy = "./repository/conf/sample/resources/policy/client_policy_3.xml";
        log.info("Running test: Routing the messages arrived to a proxy service without " +
                "processing the security headers");
        SampleClientResult  result = client.requestStandardQuote(null, url, null, "IBM", policy);
        assertTrue("Client did not a response with https ", result.responseReceived());
    }
View Full Code Here

                "/modules/integration/src/test/resources/trust.jks");
        System.setProperty("javax.net.ssl.trustStore", trustStore);

        log.info("Running test: Switching transports and message format from SOAP to REST/POX");

        SampleClientResult result2 = client.requestStandardQuote(null, url2, null, "IBM" ,null);
        assertTrue("Client did not a response with https ", result2.responseReceived());
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.samples.framework.SampleClientResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.