public class ClearSystemPropertyRule
extends org.junit.rules.TestWatcher
| Constructor and Description |
|---|
ClearSystemPropertyRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finished(org.junit.runner.Description description) |
void |
setProperty(String key,
String value)
Set a system property key to the given value.
|
void |
setPropertyWithDarkFeaturePrefix(String key,
String value)
Set a system property key to the given value.
|
public void setProperty(String key, String value)
key - the system property to be setvalue - the value to be associated with the system propertypublic void setPropertyWithDarkFeaturePrefix(String key, String value)
DarkFeatureManager.ATLASSIAN_DARKFEATURE_PREFIX
in for you.key - the system property to be set. Will be effectively: DarkFeatureManager.ATLASSIAN_DARKFEATURE_PREFIX + keyvalue - the value to be setprotected void finished(org.junit.runner.Description description)
finished in class org.junit.rules.TestWatcherCopyright © 2018 Atlassian. All rights reserved.