public class PreserveSystemPropertyRule extends Object implements org.junit.rules.TestRule
@com.atlassian.bamboo.testutils.junit.rule.PreserveSystemProperties
- calling PreserveSystemPropertyRule#preserveProperties(SystemProperty... properties)Constructor and Description |
---|
PreserveSystemPropertyRule() |
PreserveSystemPropertyRule(String... testClassProperties) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
preserveProperties(SystemProperty... properties) |
public PreserveSystemPropertyRule()
public PreserveSystemPropertyRule(String... testClassProperties)
testClassProperties
- names of System properties to preserve and restore for every test in a test classpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public void preserveProperties(SystemProperty... properties)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.