public class SystemPropertiesRule extends SystemProperties implements SystemStubTestRule
set(java.lang.String, java.lang.String).| Constructor and Description |
|---|
SystemPropertiesRule()
Default constructor provides restoration of properties
|
SystemPropertiesRule(Properties properties)
Construct with some properties to apply when active
|
SystemPropertiesRule(String name,
String value,
String... nameValues)
Construct with a variable number of properties that will be set when the rule is active
|
| Modifier and Type | Method and Description |
|---|---|
SystemPropertiesRule |
set(Map<Object,Object> properties) |
SystemPropertiesRule |
set(String name,
String value) |
doSetup, doTeardownisActive, setup, teardownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyexecute, setup, teardownexecutesetpublic SystemPropertiesRule()
public SystemPropertiesRule(Properties properties)
properties - system properties to apply when activepublic SystemPropertiesRule(String name, String value, String... nameValues)
name - name of the first propertyvalue - value of the first propertynameValues - pairs of name/values as Stringspublic SystemPropertiesRule set(String name, String value)
set in interface NameValuePairSetter<SystemProperties>set in class SystemPropertiespublic SystemPropertiesRule set(Map<Object,Object> properties)
set in interface NameValuePairSetter<SystemProperties>Copyright © 2020–2023. All rights reserved.