Package com.groupon.odo.tests.TestServer

Examples of com.groupon.odo.tests.TestServer.HttpExchangeInfo


        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();
        System.out.println(info.getRequestBody());
        assertTrue(info.getResponseBody().compareTo(testServer.getResponse()) == 0);
    }
View Full Code Here


        client.setCustomResponse("Global", overrideResponse);
        client.toggleResponseOverride("Global", true);

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

TOP

Related Classes of com.groupon.odo.tests.TestServer.HttpExchangeInfo

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.