@Test public void multipleQueryParameters() { final HttpRequest.Builder b = new HttpRequest.Builder(this.method, this.uri, Operation.WRITE); for (int i = 0; i < 10; i++) { b.withQueryParameter("key" + (10 - i), "value"); } final HttpRequest request = b.build(); assertThat(request.getQueryParameters().size(), is(10)); for (int i = 0; i < 10; i++) { final List<String> values = request.getQueryParameters().get("key" + (10 - i)); assertThat(values.size(), is(1)); assertThat(values.get(0), is("value")); } }
@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();  }