Examples of toggleProfile()


Examples of com.groupon.odo.client.Client.toggleProfile()

    }

    @Test
    public void testRedirect() throws Exception {
        Client client = new Client("Consumer API", false);
        client.toggleProfile(true);
        client.addServerMapping("localhost", "127.0.0.1:8080", null);

        String response = HttpUtils.doProxyGet("http://localhost/", null);
        System.out.println(response);
        HttpExchangeInfo info = testServer.getLastExchange();
View Full Code Here

Examples of com.groupon.odo.client.Client.toggleProfile()

    public void testRedirectCustomOverride() throws Exception {
        String overrideResponse = "overridden";
        testServer.setLastExchange(null);

        Client client = new Client("Consumer API", false);
        client.toggleProfile(true);
        client.addServerMapping("localhost", "127.0.0.1:8080", null);
        client.setCustomResponse("Global", overrideResponse);
        client.toggleResponseOverride("Global", true);

        String response = HttpUtils.doProxyGet("http://localhost/", null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.