@Test public void testConfigValidation() throws Exception { ClearTextSecretsProvider provider = new ClearTextSecretsProvider(); assertEquals(provider.provideSecret("SecretName", "SecretValue"), "SecretValue"); assertEquals(provider.provideSecret("SecretName", ""), ""); assertNull(provider.provideSecret("SecretName", null)); }
@Override public String provideSecret(String secretName, Object pathToSecret) { if (pathToSecret != null) { return pathToSecret.toString(); } else { return null; } }
ClearTextSecretsProvider implements SecretsProvider { @Override public String provideSecret(String secretName, Object pathToSecret) { if (pathToSecret != null) { return pathToSecret.toString(); } else { return null; } } }
ClearTextSecretsProvider implements SecretsProvider { @Override public String provideSecret(String secretName, Object pathToSecret) { if (pathToSecret != null) { return pathToSecret.toString(); } else { return null; } }  }
ClearTextSecretsProvider implements SecretsProvider { @Override public String provideSecret(String secretName, Object pathToSecret) { if (pathToSecret != null) { return pathToSecret.toString(); } else { return null; } }  @Override String provideSecret(String secretName, Object pathToSecret); }
ClearTextSecretsProvider implements SecretsProvider { @Override public String provideSecret(String secretName, Object pathToSecret) { if (pathToSecret != null) { return pathToSecret.toString(); } else { return null; } }  @Override String provideSecret(String secretName, Object pathToSecret);  }