@Test(expected = NullPointerException.class) public void addQueryParameterNullKey() { final AuthenticatedHttpRequest authenticatedRequest = new AuthenticatedHttpRequest(this.request); authenticatedRequest.addQueryParameter(null, "value"); }
public void addQueryParameter(final String key, final String value) { List<String> parameterValues = this.queryParameters.get(checkNotNull(key)); if (parameterValues == null) { parameterValues = Lists.newArrayList(); this.queryParameters.put(key, parameterValues); } parameterValues.add(value); }
AuthenticatedHttpRequest implements AuthenticatedRequest { public void addQueryParameter(final String key, final String value) { List<String> parameterValues = this.queryParameters.get(checkNotNull(key)); if (parameterValues == null) { parameterValues = Lists.newArrayList(); this.queryParameters.put(key, parameterValues); } parameterValues.add(value); } }
AuthenticatedHttpRequest implements AuthenticatedRequest { public void addQueryParameter(final String key, final String value) { List<String> parameterValues = this.queryParameters.get(checkNotNull(key)); if (parameterValues == null) { parameterValues = Lists.newArrayList(); this.queryParameters.put(key, parameterValues); } parameterValues.add(value); } AuthenticatedHttpRequest(final Request request); }
AuthenticatedHttpRequest implements AuthenticatedRequest { public void addQueryParameter(final String key, final String value) { List<String> parameterValues = this.queryParameters.get(checkNotNull(key)); if (parameterValues == null) { parameterValues = Lists.newArrayList(); this.queryParameters.put(key, parameterValues); } parameterValues.add(value); } AuthenticatedHttpRequest(final Request request); @Override Method getMethod(); @Override URI getUri(); @Override Map<String, List<String>> getQueryParameters(); void addQueryParameter(final String key, final String value); @Override Map<String, String> headers(); void addHeader(final String key, final String value); @Override Body getBody(); @Override Map<String, String> getContext(); @Override InputStream getContent(); void setContent(final InputStream content); @Override long getContentLength(); void setContentLength(final long length); @Override String toString(); @Override Operation getOperation(); }
AuthenticatedHttpRequest implements AuthenticatedRequest { public void addQueryParameter(final String key, final String value) { List<String> parameterValues = this.queryParameters.get(checkNotNull(key)); if (parameterValues == null) { parameterValues = Lists.newArrayList(); this.queryParameters.put(key, parameterValues); } parameterValues.add(value); } AuthenticatedHttpRequest(final Request request); @Override Method getMethod(); @Override URI getUri(); @Override Map<String, List<String>> getQueryParameters(); void addQueryParameter(final String key, final String value); @Override Map<String, String> headers(); void addHeader(final String key, final String value); @Override Body getBody(); @Override Map<String, String> getContext(); @Override InputStream getContent(); void setContent(final InputStream content); @Override long getContentLength(); void setContentLength(final long length); @Override String toString(); @Override Operation getOperation();  }