Package org.apache.lucene.util
Class SystemPropertiesRestoreRule
- java.lang.Object
-
- org.apache.lucene.util.SystemPropertiesRestoreRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class SystemPropertiesRestoreRule extends Object implements org.junit.rules.TestRule
Restore system properties from before the nestedStatement
.
-
-
Constructor Summary
Constructors Constructor Description SystemPropertiesRestoreRule()
Restores all properties.SystemPropertiesRestoreRule(String... ignoredProperties)
SystemPropertiesRestoreRule(Set<String> ignoredProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement s, org.junit.runner.Description d)
-
-
-
Constructor Detail
-
SystemPropertiesRestoreRule
public SystemPropertiesRestoreRule()
Restores all properties.
-
SystemPropertiesRestoreRule
public SystemPropertiesRestoreRule(Set<String> ignoredProperties)
- Parameters:
ignoredProperties
- Properties that will be ignored (and will not be restored).
-
SystemPropertiesRestoreRule
public SystemPropertiesRestoreRule(String... ignoredProperties)
- Parameters:
ignoredProperties
- Properties that will be ignored (and will not be restored).
-
-