@Test public void testInvalidTemplates() throws Exception { try { UserSecretTemplate.of("${secrets:foo}"); fail(); } catch (ConfigException e) { assertThat(e.getMessage(), is("Invalid parametrization: '${secrets:foo}'")); } try { UserSecretTemplate.of("${bar:foo}"); fail(); } catch (ConfigException e) { assertThat(e.getMessage(), is("Invalid parametrization: '${bar:foo}'")); } try { UserSecretTemplate.of("${:foo}"); fail(); } catch (ConfigException e) { assertThat(e.getMessage(), is("Invalid parametrization: '${:foo}'")); } }
public static UserSecretTemplate of(String source) { return new UserSecretTemplate(source); }
UserSecretTemplate { public static UserSecretTemplate of(String source) { return new UserSecretTemplate(source); } }
UserSecretTemplate { public static UserSecretTemplate of(String source) { return new UserSecretTemplate(source); } private  UserSecretTemplate(String source); }
UserSecretTemplate { public static UserSecretTemplate of(String source) { return new UserSecretTemplate(source); } private  UserSecretTemplate(String source); static UserSecretTemplate of(String source); boolean containsSecrets(); List<String> getKeys(); String format(SecretProvider secrets); }
UserSecretTemplate { public static UserSecretTemplate of(String source) { return new UserSecretTemplate(source); } private  UserSecretTemplate(String source); static UserSecretTemplate of(String source); boolean containsSecrets(); List<String> getKeys(); String format(SecretProvider secrets);  }