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