Package org.gorpipe.test
Class SystemPropertyHelper
- java.lang.Object
-
- org.gorpipe.test.SystemPropertyHelper
-
public class SystemPropertyHelper extends java.lang.ObjectA helper class to keep track of system properties being set and to either restore or remove them when instructed.
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()voidsetSystemProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetSystemProperty(java.lang.String key, java.lang.String value)Sets a system property and maintains the old value of that property to reset when instructed.
-
-
-
Method Detail
-
setSystemProperty
public void setSystemProperty(java.lang.String key, java.lang.String value)Sets a system property and maintains the old value of that property to reset when instructed. The- Parameters:
key-value-
-
setSystemProperties
public void setSystemProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
reset
public void reset()
-
-