Class ConfigUtilTest

java.lang.Object
de.hybris.bootstrap.config.ConfigUtilTest

@ManualTest public class ConfigUtilTest extends Object
  • Constructor Details

    • ConfigUtilTest

      public ConfigUtilTest()
  • Method Details

    • createTempPropertiesFile

      public void createTempPropertiesFile() throws IOException
      Throws:
      IOException
    • deleteTempPropertiesFile

      public void deleteTempPropertiesFile() throws IOException
      Throws:
      IOException
    • loadFromUTF8Properties

      public void loadFromUTF8Properties() throws IOException
      UTF-8 encoded property files should be supported
      Throws:
      IOException
    • loadFromPropertiesWithUnsupportedEncoding

      public void loadFromPropertiesWithUnsupportedEncoding() throws IOException
      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

      public void loadFromUTF8PropertiesWithWrongConfig() throws IOException
      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()