org.junit.rules.TestRule
public class SystemPropertiesRestoreRule extends Object implements org.junit.rules.TestRule
Statement
.Constructor | Description |
---|---|
SystemPropertiesRestoreRule() |
Restores all properties.
|
SystemPropertiesRestoreRule(String... ignoredProperties) |
|
SystemPropertiesRestoreRule(Set<String> ignoredProperties) |
Modifier and Type | Method | Description |
---|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
org.junit.runner.Description d) |
public SystemPropertiesRestoreRule()
public SystemPropertiesRestoreRule(Set<String> ignoredProperties)
ignoredProperties
- Properties that will be ignored (and will not be restored).public SystemPropertiesRestoreRule(String... ignoredProperties)
ignoredProperties
- Properties that will be ignored (and will not be restored).Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.