Class SystemPropertiesRule
java.lang.Object
org.junit.rules.TestWatcher
org.operaton.bpm.engine.test.util.SystemPropertiesRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class SystemPropertiesRule
extends org.junit.rules.TestWatcher
Restores the system properties after a test
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinished(org.junit.runner.Description description) static SystemPropertiesRuleUse the static method so the test is more readableprotected voidstarting(org.junit.runner.Description description) Methods inherited from class org.junit.rules.TestWatcher
apply, failed, skipped, skipped, succeeded
-
Field Details
-
originalProperties
-
-
Method Details
-
resetPropsAfterTest
Use the static method so the test is more readable -
starting
protected void starting(org.junit.runner.Description description) - Overrides:
startingin classorg.junit.rules.TestWatcher
-
finished
protected void finished(org.junit.runner.Description description) - Overrides:
finishedin classorg.junit.rules.TestWatcher
-