@Test public void setHeaderShouldDelegate() throws IOException { toTest.setHeader("name", "value"); verify(delegate).setHeader("name", "value"); }
public void setHeader(String name, String value) throws IOException { this.delegate.setHeader(name, value); }
AuthorizationHttpChannel implements HttpChannel { public void setHeader(String name, String value) throws IOException { this.delegate.setHeader(name, value); } }
AuthorizationHttpChannel implements HttpChannel { public void setHeader(String name, String value) throws IOException { this.delegate.setHeader(name, value); } AuthorizationHttpChannel(HttpChannel delegate, Authorization authorization, MethodType methodType, String url, Charset charset, Map<String, EntityParamExtractor> entityParamExtrators); }
AuthorizationHttpChannel implements HttpChannel { public void setHeader(String name, String value) throws IOException { this.delegate.setHeader(name, value); } AuthorizationHttpChannel(HttpChannel delegate, Authorization authorization, MethodType methodType, String url, Charset charset, Map<String, EntityParamExtractor> entityParamExtrators); Response send(); void setContentType(String contentType); void writeEntityWith(HttpEntityWriter httpEntityWriter); void addHeader(String name, String value); void setHeader(String name, String value); void setAccept(String value); void setSocketTimeout(int timeout); void setConnectionTimeout(int timeout); }
AuthorizationHttpChannel implements HttpChannel { public void setHeader(String name, String value) throws IOException { this.delegate.setHeader(name, value); } AuthorizationHttpChannel(HttpChannel delegate, Authorization authorization, MethodType methodType, String url, Charset charset, Map<String, EntityParamExtractor> entityParamExtrators); Response send(); void setContentType(String contentType); void writeEntityWith(HttpEntityWriter httpEntityWriter); void addHeader(String name, String value); void setHeader(String name, String value); void setAccept(String value); void setSocketTimeout(int timeout); void setConnectionTimeout(int timeout);  }