@Test public void getRequestShouldDelegates(){ Request mockRequest = mock(Request.class); when(mockResponse.getRequest()).thenReturn(mockRequest); assertSame(mockRequest, toTest.getRequest()); }
public Request getRequest() { return delegate.getRequest(); }
DelegatingResponse implements Response { public Request getRequest() { return delegate.getRequest(); } }
DelegatingResponse implements Response { public Request getRequest() { return delegate.getRequest(); } DelegatingResponse(Response delegate); }
DelegatingResponse implements Response { public Request getRequest() { return delegate.getRequest(); } DelegatingResponse(Response delegate); Request getRequest(); int getStatusCode(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); InputStream asStream(); void dispose(); }
DelegatingResponse implements Response { public Request getRequest() { return delegate.getRequest(); } DelegatingResponse(Response delegate); Request getRequest(); int getStatusCode(); String getContentType(); Charset getCharset(); String getContentEncoding(); Type getExpectedGenericType(); Class<?> getExpectedType(); T deserialize(); T to(Class<T> type); T to(Class<T> type, Type genericType); InputStream asStream(); void dispose();  }