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 a
static
field or system property.-
Constructor Summary
-
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
FlagRule
-
FlagRule
-
-
Method Details
-
before
- Overrides:
before
in classorg.junit.rules.ExternalResource
- Throws:
Throwable
-
after
protected void after()- Overrides:
after
in classorg.junit.rules.ExternalResource
-
systemProperty
-
systemProperty
-