Package com.consol.citrus.http.message

Examples of com.consol.citrus.http.message.HttpMessage


        replay(restTemplate);

        httpClient.send(requestMessage, context);

        HttpMessage responseMessage = (HttpMessage) httpClient.receive(context, 1000L);
        Assert.assertEquals(responseMessage.getStatusCode(), HttpStatus.FORBIDDEN);
        Assert.assertEquals(responseMessage.getReasonPhrase(), "FORBIDDEN");

        verify(restTemplate);
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.http.message.HttpMessage

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.