public class SystemProperty
extends org.junit.rules.ExternalResource
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized |
protected String |
value |
| Constructor and Description |
|---|
SystemProperty(String name) |
SystemProperty(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
static <V> V |
callWithProperty(String name,
String value,
Callable<V> callable)
Utility method to execute a callable with a system property and restoring the property's original value afterwards.
|
protected void |
doCleanUp() |
String |
getName() |
String |
getValue() |
protected void |
restoreOldValue() |
protected boolean initialized
protected String value
public SystemProperty(String name)
public static <V> V callWithProperty(String name, String value, Callable<V> callable) throws Throwable
Throwableprotected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourceprotected void restoreOldValue()
public String getName()
protected void doCleanUp()
public String getValue()
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.