Package com.ibm.fhir.config
Class ConfigurationService.EnvironmentVariables
- java.lang.Object
-
- com.ibm.fhir.config.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 ofSystem
).
-
-
Constructor Summary
Constructors Constructor Description EnvironmentVariables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
get()
Simple proxy method forSystem.getenv()
that returns an unmodifiable string map view of the current system environment.
-
-
-
Method Detail
-
get
public static Map<String,String> get()
Simple proxy method forSystem.getenv()
that returns an unmodifiable string map view of the current system environment.- Returns:
- the environment as a map of variable names to values
-
-