@Test public void oneQueryParameterMultipleValues() { final HttpRequest request = new HttpRequest.Builder(this.method, this.uri, Operation.WRITE) .withQueryParameter("key", "one").withQueryParameter("key", "two").build(); assertThat(request.getQueryParameters().size(), is(1)); final List<String> values = request.getQueryParameters().get("key"); assertThat(values.size(), is(2)); assertThat(values.get(0), is("one")); assertThat(values.get(1), is("two")); }
@Override public Map<String, List<String>> getQueryParameters() { return this.queryParameters; }
HttpRequest implements Request { @Override public Map<String, List<String>> getQueryParameters() { return this.queryParameters; } }
HttpRequest implements Request { @Override public Map<String, List<String>> getQueryParameters() { return this.queryParameters; } private  HttpRequest(final Builder builder); }
HttpRequest implements Request { @Override public Map<String, List<String>> getQueryParameters() { return this.queryParameters; } private  HttpRequest(final Builder builder); @Override Method getMethod(); @Override URI getUri(); @Override Map<String, List<String>> getQueryParameters(); @Override Map<String, String> headers(); @Override Body getBody(); @Override Map<String, String> getContext(); @Override Operation getOperation(); @Override String toString(); }
HttpRequest implements Request { @Override public Map<String, List<String>> getQueryParameters() { return this.queryParameters; } private  HttpRequest(final Builder builder); @Override Method getMethod(); @Override URI getUri(); @Override Map<String, List<String>> getQueryParameters(); @Override Map<String, String> headers(); @Override Body getBody(); @Override Map<String, String> getContext(); @Override Operation getOperation(); @Override String toString();  }