Package net.officefloor.test.system
Class EnvironmentRule
- java.lang.Object
-
- net.officefloor.test.system.AbstractExternalOverride<I>
-
- net.officefloor.test.system.AbstractEnvironmentOverride<EnvironmentRule>
-
- net.officefloor.test.system.EnvironmentRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class EnvironmentRule extends AbstractEnvironmentOverride<EnvironmentRule> implements org.junit.rules.TestRule
TestRule
for specifying environment (System.getenv()
) for tests.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.test.system.AbstractEnvironmentOverride
AbstractEnvironmentOverride.EnvironmentChange
-
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 EnvironmentRule(java.lang.String... nameValuePairs)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
Methods inherited from class net.officefloor.test.system.AbstractEnvironmentOverride
changeEnvironment, clear, get, set
-
Methods inherited from class net.officefloor.test.system.AbstractExternalOverride
override, property, run
-
-