@Test public void shouldIncludeAuthTokenInHeader() { assertThat(request.getHeaders().get("X-TrackerToken"), equalTo("xyz123")); }
@Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; }
RecentActivityRequest extends ApiRequest<XmlApiResponse> { @Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; } }
RecentActivityRequest extends ApiRequest<XmlApiResponse> { @Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; } RecentActivityRequest(String token); }
RecentActivityRequest extends ApiRequest<XmlApiResponse> { @Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; } RecentActivityRequest(String token); @Override String getUrlString(); @Override Map<String, String> getHeaders(); @Override XmlApiResponse createResponse(int statusCode); @Override boolean equals(Object o); @Override int hashCode(); }
RecentActivityRequest extends ApiRequest<XmlApiResponse> { @Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; } RecentActivityRequest(String token); @Override String getUrlString(); @Override Map<String, String> getHeaders(); @Override XmlApiResponse createResponse(int statusCode); @Override boolean equals(Object o); @Override int hashCode();  }