@Test public void testWithProtocolVersion$null(){ HttpRequest build=sut().withProtocolVersion(null).build(); assertThat(build.protocolVersion(),equalTo(HttpRequest.ProtocolVersion.HTTP_1_1)); }
public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; }
HttpRequestBuilder { public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; } }
HttpRequestBuilder { public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; } private  HttpRequestBuilder(); }
HttpRequestBuilder { public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; } private  HttpRequestBuilder(); HttpRequestBuilder withMethod(HttpMethod method); HttpRequestBuilder withProtocolVersion(ProtocolVersion version); HttpRequestBuilder withHost(String host); HttpRequestBuilder withAbsolutePath(String absolutePath); HttpRequestBuilder withBody(String entity); HttpRequestBuilder withHeader(String name, String rawValue); HttpRequestBuilder withServerDate(Date date); HttpRequestBuilder withClientDate(Date date); HttpRequest build(); static HttpRequestBuilder newInstance(); }
HttpRequestBuilder { public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; } private  HttpRequestBuilder(); HttpRequestBuilder withMethod(HttpMethod method); HttpRequestBuilder withProtocolVersion(ProtocolVersion version); HttpRequestBuilder withHost(String host); HttpRequestBuilder withAbsolutePath(String absolutePath); HttpRequestBuilder withBody(String entity); HttpRequestBuilder withHeader(String name, String rawValue); HttpRequestBuilder withServerDate(Date date); HttpRequestBuilder withClientDate(Date date); HttpRequest build(); static HttpRequestBuilder newInstance();  }