@Test public void getHeaderTest() throws Exception { assertThat(configurationDataProvider.getHeader("123"), is(notNullValue())); }
public static Map<String,Object> getHeader(String base64Creds){ Map<String,Object> authToken = new HashMap<>(); authToken.put("Content-Type", ContentType.APPLICATION_JSON.toString()); authToken.put("Authorization", "Basic "+base64Creds); return authToken; }
CommonHttpUtils { public static Map<String,Object> getHeader(String base64Creds){ Map<String,Object> authToken = new HashMap<>(); authToken.put("Content-Type", ContentType.APPLICATION_JSON.toString()); authToken.put("Authorization", "Basic "+base64Creds); return authToken; } }
CommonHttpUtils { public static Map<String,Object> getHeader(String base64Creds){ Map<String,Object> authToken = new HashMap<>(); authToken.put("Content-Type", ContentType.APPLICATION_JSON.toString()); authToken.put("Authorization", "Basic "+base64Creds); return authToken; }  }
CommonHttpUtils { public static Map<String,Object> getHeader(String base64Creds){ Map<String,Object> authToken = new HashMap<>(); authToken.put("Content-Type", ContentType.APPLICATION_JSON.toString()); authToken.put("Authorization", "Basic "+base64Creds); return authToken; }  static Map<String,Object> getHeader(String base64Creds); static JsonObject getConfigurationsFromConfigApi(String url,Map<String,Object> headers); static CloseableHttpClient getCloseableHttpClient(); static String getEnvironmentVariable(String envVar); }
CommonHttpUtils { public static Map<String,Object> getHeader(String base64Creds){ Map<String,Object> authToken = new HashMap<>(); authToken.put("Content-Type", ContentType.APPLICATION_JSON.toString()); authToken.put("Authorization", "Basic "+base64Creds); return authToken; }  static Map<String,Object> getHeader(String base64Creds); static JsonObject getConfigurationsFromConfigApi(String url,Map<String,Object> headers); static CloseableHttpClient getCloseableHttpClient(); static String getEnvironmentVariable(String envVar);  }