Class ConfigurationService.EnvironmentVariables

  • Enclosing class:
    ConfigurationService

    public static class ConfigurationService.EnvironmentVariables
    extends Object
    Utility class that allows mocking system environment variables retrieval in test classes (as Mockito disallows mocking static methods of System).
    • Constructor Detail

      • EnvironmentVariables

        public EnvironmentVariables()
    • Method Detail

      • get

        public static Map<String,​String> get()
        Simple proxy method for System.getenv() that returns an unmodifiable string map view of the current system environment.
        Returns:
        the environment as a map of variable names to values