@Test(groups = "fast") public void testDecyptionExplicitlyDisabled() throws IOException, URISyntaxException { String unencryptedValue = "myPropertyValue"; String encryptedValue = encString(unencryptedValue); Map<String, String> properties = ImmutableMap.of(ENABLE_JASYPT_PROPERTY, "false", ENCRYPTED_PROPERTY_1, encryptedValue, JASYPT_ENCRYPTOR_PASSWORD_PROPERTY, JASYPT_PASSWORD, JASYPT_ENCRYPTOR_ALGORITHM_PROPERTY, JASYPT_ALGORITHM); DefaultKillbillConfigSource configSource = new DefaultKillbillConfigSource(properties); String actualValue = configSource.getString(ENCRYPTED_PROPERTY_1); Assert.assertEquals(encryptedValue, actualValue); }
@Override public String getString(final String propertyName) { return properties.getProperty(propertyName); }
DefaultKillbillConfigSource implements KillbillConfigSource, OSGIConfigProperties { @Override public String getString(final String propertyName) { return properties.getProperty(propertyName); } }
DefaultKillbillConfigSource implements KillbillConfigSource, OSGIConfigProperties { @Override public String getString(final String propertyName) { return properties.getProperty(propertyName); } DefaultKillbillConfigSource();  DefaultKillbillConfigSource(final Map<String, String> extraDefaultProperties);  DefaultKillbillConfigSource(@Nullable final String file);  DefaultKillbillConfigSource(@Nullable final String file, final Map<String, String> extraDefaultProperties); }
DefaultKillbillConfigSource implements KillbillConfigSource, OSGIConfigProperties { @Override public String getString(final String propertyName) { return properties.getProperty(propertyName); } DefaultKillbillConfigSource();  DefaultKillbillConfigSource(final Map<String, String> extraDefaultProperties);  DefaultKillbillConfigSource(@Nullable final String file);  DefaultKillbillConfigSource(@Nullable final String file, final Map<String, String> extraDefaultProperties); @Override String getString(final String propertyName); @Override Properties getProperties(); @VisibleForTesting void setProperty(final String propertyName, final Object propertyValue); }
DefaultKillbillConfigSource implements KillbillConfigSource, OSGIConfigProperties { @Override public String getString(final String propertyName) { return properties.getProperty(propertyName); } DefaultKillbillConfigSource();  DefaultKillbillConfigSource(final Map<String, String> extraDefaultProperties);  DefaultKillbillConfigSource(@Nullable final String file);  DefaultKillbillConfigSource(@Nullable final String file, final Map<String, String> extraDefaultProperties); @Override String getString(final String propertyName); @Override Properties getProperties(); @VisibleForTesting void setProperty(final String propertyName, final Object propertyValue);  }