@Test public void testBuildHttpMethod() { HttpRequest nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "http: RecordedHttpRequestBuilder recordedHttpRequestBuilder = new RecordedHttpRequestBuilder(nettyRequest); RecordedHttpRequest recordedHttpRequest = recordedHttpRequestBuilder.build(); Assert.assertEquals(recordedHttpRequest.getMethod(), HttpMethod.GET.toString()); }
public RecordedHttpRequest build() { return new RecordedHttpRequest(_httpMethod, _uri, getHeaders(), getBody()); }
RecordedHttpRequestBuilder extends RecordedHttpMessageBuilder { public RecordedHttpRequest build() { return new RecordedHttpRequest(_httpMethod, _uri, getHeaders(), getBody()); } }
RecordedHttpRequestBuilder extends RecordedHttpMessageBuilder { public RecordedHttpRequest build() { return new RecordedHttpRequest(_httpMethod, _uri, getHeaders(), getBody()); } RecordedHttpRequestBuilder(HttpRequest nettyHttpRequest); }
RecordedHttpRequestBuilder extends RecordedHttpMessageBuilder { public RecordedHttpRequest build() { return new RecordedHttpRequest(_httpMethod, _uri, getHeaders(), getBody()); } RecordedHttpRequestBuilder(HttpRequest nettyHttpRequest); void interpretHttpRequest(HttpRequest nettyHttpRequest); @Override void addHeaders(HttpMessage httpMessage); RecordedHttpRequest build(); }
RecordedHttpRequestBuilder extends RecordedHttpMessageBuilder { public RecordedHttpRequest build() { return new RecordedHttpRequest(_httpMethod, _uri, getHeaders(), getBody()); } RecordedHttpRequestBuilder(HttpRequest nettyHttpRequest); void interpretHttpRequest(HttpRequest nettyHttpRequest); @Override void addHeaders(HttpMessage httpMessage); RecordedHttpRequest build();  }