public class SystemPropertiesInvariantRule extends Object implements TestRule
TestRule that ensures system properties remain unmodified by the nested
Statement. This can be applied both at suite level and at test level.SystemPropertiesRestoreRule,
ClassRule,
Rule| Constructor and Description |
|---|
SystemPropertiesInvariantRule()
Cares about all properties.
|
SystemPropertiesInvariantRule(Set<String> ignoredProperties)
Don't care about the given set of properties.
|
SystemPropertiesInvariantRule(String... ignoredProperties)
Don't care about the given set of properties.
|
public SystemPropertiesInvariantRule()
public SystemPropertiesInvariantRule(String... ignoredProperties)
public Statement apply(Statement s, Description d)
Copyright © 2011-2013 Carrot Search s.c.. All Rights Reserved.