public class EnvironmentVariablesRule extends EnvironmentVariables implements SystemStubTestRule
variables| Constructor and Description |
|---|
EnvironmentVariablesRule()
Default constructor provides restoration of the environment and the ability to set values
|
EnvironmentVariablesRule(Map<String,String> variables)
Construct with some variables to apply when active
|
EnvironmentVariablesRule(Properties properties)
Construct with some variables to apply when active
|
EnvironmentVariablesRule(String name,
String value,
String... others)
Construct with variables that will be set when the rule is active
|
| Modifier and Type | Method and Description |
|---|---|
EnvironmentVariablesRule |
and(String name,
String value) |
EnvironmentVariablesRule |
set(Map<Object,Object> properties) |
EnvironmentVariablesRule |
set(String name,
String value) |
doSetup, doTeardown, getVariablesisActive, setup, teardownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyexecute, setup, teardownexecutesetpublic EnvironmentVariablesRule()
public EnvironmentVariablesRule(Properties properties)
properties - map of variables to apply when activepublic EnvironmentVariablesRule(String name, String value, String... others)
name - name of the first variablevalue - value of the first variableothers - pairs of name/values as Stringspublic EnvironmentVariablesRule and(String name, String value)
and in class EnvironmentVariablespublic EnvironmentVariablesRule set(String name, String value)
set in interface NameValuePairSetter<EnvironmentVariables>set in class EnvironmentVariablespublic EnvironmentVariablesRule set(Map<Object,Object> properties)
set in interface NameValuePairSetter<EnvironmentVariables>Copyright © 2020–2023. All rights reserved.