@Test public void getHeadersFromTextBlock_MultipleHeaders(){ String headers = "Content-Type: application/json\nAuthorization: Basic 123984234=\nApiToken: 12346"; HashMap<String,String> expectedMap = new HashMap<>(); expectedMap.put("Content-Type", "application/json"); expectedMap.put("Authorization", "Basic 123984234="); expectedMap.put("ApiToken", "12346"); CustomUrlRequest cur = new CustomUrlRequest("http: assertThat("Headers map created from text block", cur.getHttpHeaders(), is(expectedMap)); }
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);   }