@Test public void testExtractFromProvider() { String absPath = getKeyStoreUrl(populatedKeyStore); Configuration conf = new Configuration(); HadoopCredentialProvider.setPath(conf, absPath); Map<String,String> expectations = new HashMap<>(); expectations.put("key1", "value1"); expectations.put("key2", "value2"); checkCredentialProviders(conf, expectations); }
public static void setPath(Configuration conf, String path) { conf.set(CREDENTIAL_PROVIDER_PATH, path); }
HadoopCredentialProvider { public static void setPath(Configuration conf, String path) { conf.set(CREDENTIAL_PROVIDER_PATH, path); } }
HadoopCredentialProvider { public static void setPath(Configuration conf, String path) { conf.set(CREDENTIAL_PROVIDER_PATH, path); }  }
HadoopCredentialProvider { public static void setPath(Configuration conf, String path) { conf.set(CREDENTIAL_PROVIDER_PATH, path); }  static void setPath(Configuration conf, String path); static char[] getValue(Configuration conf, String alias); static List<String> getKeys(Configuration conf); static void createEntry(Configuration conf, String name, char[] credential); }
HadoopCredentialProvider { public static void setPath(Configuration conf, String path) { conf.set(CREDENTIAL_PROVIDER_PATH, path); }  static void setPath(Configuration conf, String path); static char[] getValue(Configuration conf, String alias); static List<String> getKeys(Configuration conf); static void createEntry(Configuration conf, String name, char[] credential);  }