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.TestRuleAdapter
java.lang.Throwable
protected void afterAlways(java.util.List<java.lang.Throwable> errors) throws java.lang.Throwable
afterAlways
in class com.carrotsearch.randomizedtesting.rules.TestRuleAdapter
java.lang.Throwable
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.