public class SystemPropertiesInvariantRule extends Object implements org.junit.rules.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.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
org.junit.runner.Description d) |
public SystemPropertiesInvariantRule()
public SystemPropertiesInvariantRule(String... ignoredProperties)
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.