public class EnvironmentUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
getenv()
Wrapper around System.getenv()) to allow us to mock it during testing.
|
static java.lang.String |
getenv(java.lang.String varname)
Wrapper around System.getenv(String) to allow us to mock it during testing.
|
public static java.lang.String getenv(java.lang.String varname)
varname
- the name of the environment variable to retrievepublic static java.util.Map<java.lang.String,java.lang.String> getenv()
Copyright © 2022 IBM Cloud Developer Experience. All rights reserved.