Package net.officefloor.test.system
Class AbstractSystemPropertiesOverride<I extends AbstractExternalOverride<I>>
- java.lang.Object
-
- net.officefloor.test.system.AbstractExternalOverride<I>
-
- net.officefloor.test.system.AbstractSystemPropertiesOverride<I>
-
- Direct Known Subclasses:
SystemPropertiesExtension
,SystemPropertiesRule
public class AbstractSystemPropertiesOverride<I extends AbstractExternalOverride<I>> extends AbstractExternalOverride<I>
Abstract functionality for overriding theSystem.getProperty(String)
values in tests.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.test.system.AbstractExternalOverride
AbstractExternalOverride.ContextRunnable<T extends java.lang.Throwable>, AbstractExternalOverride.OverrideReset
-
-
Constructor Summary
Constructors Constructor Description AbstractSystemPropertiesOverride(java.lang.String... nameValuePairs)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear(java.lang.String name)
Clears the value.protected java.lang.String
get(java.lang.String name)
Obtains the value.protected void
set(java.lang.String name, java.lang.String value)
Specifies the value.-
Methods inherited from class net.officefloor.test.system.AbstractExternalOverride
override, property, run
-
-
-
-
Method Detail
-
get
protected java.lang.String get(java.lang.String name)
Description copied from class:AbstractExternalOverride
Obtains the value.- Specified by:
get
in classAbstractExternalOverride<I extends AbstractExternalOverride<I>>
- Parameters:
name
- Name of value.- Returns:
- Value.
-
set
protected void set(java.lang.String name, java.lang.String value)
Description copied from class:AbstractExternalOverride
Specifies the value.- Specified by:
set
in classAbstractExternalOverride<I extends AbstractExternalOverride<I>>
- Parameters:
name
- Name for value.value
- Value.
-
clear
protected void clear(java.lang.String name)
Description copied from class:AbstractExternalOverride
Clears the value.- Specified by:
clear
in classAbstractExternalOverride<I extends AbstractExternalOverride<I>>
- Parameters:
name
- Name of value.
-
-