public class TestRuleRestoreSystemProperties
extends com.carrotsearch.randomizedtesting.rules.TestRuleAdapter
SystemPropertiesRestoreRule but
the list of properties to restore must be provided explicitly (because the security
manager prevents us from accessing the whole set of properties).
All properties to be restored must have r/w property permission.| Constructor and Description |
|---|
TestRuleRestoreSystemProperties(java.lang.String... propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAlways(java.util.List<java.lang.Throwable> errors) |
protected void |
before() |
public TestRuleRestoreSystemProperties(java.lang.String... propertyNames)
protected void before()
throws java.lang.Throwable
before in class com.carrotsearch.randomizedtesting.rules.TestRuleAdapterjava.lang.Throwableprotected void afterAlways(java.util.List<java.lang.Throwable> errors)
throws java.lang.Throwable
afterAlways in class com.carrotsearch.randomizedtesting.rules.TestRuleAdapterjava.lang.ThrowableCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.