Package org.robolectric.junit.rules
Class SetSystemPropertyRule
java.lang.Object
org.robolectric.junit.rules.SetSystemPropertyRule
- All Implemented Interfaces:
org.junit.rules.TestRule
A rule that lets you override system properties for tests. All properties are restored after each
test.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SetSystemPropertyRule
public SetSystemPropertyRule()
-
-
Method Details
-
set
-
clear
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
apply
in interfaceorg.junit.rules.TestRule
-