Package de.hybris.bootstrap.config
Class ConfigUtilTest
java.lang.Object
de.hybris.bootstrap.config.ConfigUtilTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidWhen the requested encoding is not supported, property files should be read with default ISO 8859-1 encoding and not cause an exception.voidUTF-8 encoded property files should be supportedvoidUsing an incorrect encoding should cause failure when reading property files.voidvoidvoidvoidvoid
-
Constructor Details
-
ConfigUtilTest
public ConfigUtilTest()
-
-
Method Details
-
createTempPropertiesFile
- Throws:
IOException
-
deleteTempPropertiesFile
- Throws:
IOException
-
loadFromUTF8Properties
UTF-8 encoded property files should be supported- Throws:
IOException
-
loadFromPropertiesWithUnsupportedEncoding
When the requested encoding is not supported, property files should be read with default ISO 8859-1 encoding and not cause an exception.- Throws:
IOException
-
loadFromUTF8PropertiesWithWrongConfig
Using an incorrect encoding should cause failure when reading property files.- Throws:
IOException
-
loadAdditionalRuntimeProperties
public void loadAdditionalRuntimeProperties() -
loadOptionalConfig
public void loadOptionalConfig() -
loadOptionalConfigViaEnvVariable
public void loadOptionalConfigViaEnvVariable() -
shouldLogOnlyOnceUsageOfOptionalPropertiesEnvVariable
public void shouldLogOnlyOnceUsageOfOptionalPropertiesEnvVariable() -
loadFromEnv
public void loadFromEnv() -
getPropertyOrEnvShouldReturnNullIfNotSet
public void getPropertyOrEnvShouldReturnNullIfNotSet() -
getPropertyOrEnvShouldReturnPropertyIfSet
public void getPropertyOrEnvShouldReturnPropertyIfSet() -
getPropertyOrEnvShouldReturnEnvIfSet
public void getPropertyOrEnvShouldReturnEnvIfSet() -
getPropertyOrEnvShouldPreferEnvToProperty
public void getPropertyOrEnvShouldPreferEnvToProperty() -
shouldOverwritePropertiesFromEnvs
public void shouldOverwritePropertiesFromEnvs() -
shouldOverwritePropertiesFromProperties
public void shouldOverwritePropertiesFromProperties()
-