@Test public void oneContext() { final HttpRequest request = new HttpRequest.Builder(this.method, this.uri, Operation.WRITE) .withContext("key", "value").build(); assertThat(request.getContext().size(), is(1)); assertThat(request.getContext(), hasEntry("key", "value")); }
@Override public Map<String, String> getContext() { return this.context; }
HttpRequest implements Request { @Override public Map<String, String> getContext() { return this.context; } }
HttpRequest implements Request { @Override public Map<String, String> getContext() { return this.context; } private  HttpRequest(final Builder builder); }
HttpRequest implements Request { @Override public Map<String, String> getContext() { return this.context; } 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, String> getContext() { return this.context; } 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();  }