@Test public void getStatusCodeShouldGetItFromHttpResource() throws IOException { when(mockResource.getStatusCode()).thenReturn(100); assertEquals(100, toTest.getStatusCode()); }
public int getStatusCode() throws IOException { return resource.getStatusCode(); }
HttpResponse implements Response, Disposable { public int getStatusCode() throws IOException { return resource.getStatusCode(); } }
HttpResponse implements Response, Disposable { public int getStatusCode() throws IOException { return resource.getStatusCode(); } HttpResponse(ResponseDeserializer baseResponseDeserializer, ResponseDeserializer customTypeResponseDeserializer, Request request, HttpResource resource); }
HttpResponse implements Response, Disposable { public int getStatusCode() throws IOException { return resource.getStatusCode(); } HttpResponse(ResponseDeserializer baseResponseDeserializer, ResponseDeserializer customTypeResponseDeserializer, Request request, HttpResource resource); int getStatusCode(); String getStatusMessage(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); Request getRequest(); InputStream asStream(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); void dispose(); }
HttpResponse implements Response, Disposable { public int getStatusCode() throws IOException { return resource.getStatusCode(); } HttpResponse(ResponseDeserializer baseResponseDeserializer, ResponseDeserializer customTypeResponseDeserializer, Request request, HttpResource resource); int getStatusCode(); String getStatusMessage(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); Request getRequest(); InputStream asStream(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); void dispose();  }