Package org.jvnet.hudson.test
Class FlagRule<T>
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- org.jvnet.hudson.test.FlagRule<T>
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class FlagRule<T> extends org.junit.rules.ExternalResource
Saves and restores sort of a flag, such as astatic
field or system property.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
after()
protected void
before()
static FlagRule<String>
systemProperty(String key)
static FlagRule<String>
systemProperty(String key, String replacement)
-