public class SystemPropertiesRestoreRule extends Object implements org.junit.rules.TestRule
Statement.| Constructor and Description |
|---|
SystemPropertiesRestoreRule()
Restores all properties.
|
SystemPropertiesRestoreRule(Set<String> ignoredProperties) |
SystemPropertiesRestoreRule(String... ignoredProperties) |
| Modifier and Type | Method and 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).