@Test public void getStatusCodeShouldReturnResponseOne() throws IOException { when(mockResponse.getStatusCode()).thenReturn(123); HttpChannelResponseHttpResource toTest = newToTest(); assertEquals(123, toTest.getStatusCode()); }
public int getStatusCode() throws IOException { return response.getStatusCode(); }
HttpChannelResponseHttpResource implements HttpResource { public int getStatusCode() throws IOException { return response.getStatusCode(); } }
HttpChannelResponseHttpResource implements HttpResource { public int getStatusCode() throws IOException { return response.getStatusCode(); } HttpChannelResponseHttpResource(HttpChannel.Response response); }
HttpChannelResponseHttpResource implements HttpResource { public int getStatusCode() throws IOException { return response.getStatusCode(); } HttpChannelResponseHttpResource(HttpChannel.Response response); String getContentType(); Charset getCharset(); String getContentEncoding(); InputStream getEntity(); String getStatusMessage(); int getStatusCode(); void close(); }
HttpChannelResponseHttpResource implements HttpResource { public int getStatusCode() throws IOException { return response.getStatusCode(); } HttpChannelResponseHttpResource(HttpChannel.Response response); String getContentType(); Charset getCharset(); String getContentEncoding(); InputStream getEntity(); String getStatusMessage(); int getStatusCode(); void close();  }