Package google.registry.util
Interface SystemPropertySetter
public interface SystemPropertySetter
Wrapper interface around
System.setProperty(String, String)
and System.clearProperty(String)
. Tests that modify system properties may provide custom
implementations that keeps track of changes and restores original property values on test
completion.-
Field Summary
Modifier and TypeFieldDescriptionstatic final SystemPropertySetter
Production implementation ofSystemPropertySetter
. -
Method Summary
Modifier and TypeMethodDescriptionsetProperty
(String key, String value) Updates the system property specified bykey
.
-
Field Details
-
PRODUCTION_IMPL
Production implementation ofSystemPropertySetter
.
-
-
Method Details
-
setProperty
Updates the system property specified bykey
. Ifvalue
is not null,System.setProperty(String, String)
is invoked; otherwiseSystem.clearProperty(String)
is invoked.
-