Package com.cumulocity.me.rest.representation

Examples of com.cumulocity.me.rest.representation.ResourceRepresentation


    @Test
    public void shouldGet() throws Exception {
        when(httpClient.request(path)).thenReturn(requestBuilder);
        when(requestBuilder.get(HttpConnection.HTTP_OK, responseEntityType)).thenReturn(new ErrorMessageRepresentation());
       
        ResourceRepresentation representation = restConnector.get(path, mediaType, responseEntityType);
       
        assertThat(representation).isInstanceOf(ErrorMessageRepresentation.class);
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.rest.representation.ResourceRepresentation

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.