@Test public void addBasicAuthorizationHeader_CredentialsPresent(){ CustomUrlRequest cur = new CustomUrlRequest("http: String expected = "Basic Ym9iOmh1bnRlcjI="; assertThat("Authorization header is present", cur.getHttpHeaders().get("Authorization"), is(expected)); }
HashMap<String, String> getHttpHeaders(){ return this.httpHeaders; }
CustomUrlRequest implements Serializable { HashMap<String, String> getHttpHeaders(){ return this.httpHeaders; } }
CustomUrlRequest implements Serializable { HashMap<String, String> getHttpHeaders(){ return this.httpHeaders; } CustomUrlRequest(String logUrl, String httpMethod);  CustomUrlRequest(String logUrl);  CustomUrlRequest(String logURL, String httpMethod, String httpBody, String rawHeaders, String basicAuthUsername, String basicauthPassword); }
CustomUrlRequest implements Serializable { HashMap<String, String> getHttpHeaders(){ return this.httpHeaders; } CustomUrlRequest(String logUrl, String httpMethod);  CustomUrlRequest(String logUrl);  CustomUrlRequest(String logURL, String httpMethod, String httpBody, String rawHeaders, String basicAuthUsername, String basicauthPassword);  }
CustomUrlRequest implements Serializable { HashMap<String, String> getHttpHeaders(){ return this.httpHeaders; } CustomUrlRequest(String logUrl, String httpMethod);  CustomUrlRequest(String logUrl);  CustomUrlRequest(String logURL, String httpMethod, String httpBody, String rawHeaders, String basicAuthUsername, String basicauthPassword);   }