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 Details

    • originalProperties

      protected Properties originalProperties
  • Method Details

    • resetPropsAfterTest

      public static SystemPropertiesRule resetPropsAfterTest()
      Use the static method so the test is more readable
    • starting

      protected void starting(org.junit.runner.Description description)
      Overrides:
      starting in class org.junit.rules.TestWatcher
    • finished

      protected void finished(org.junit.runner.Description description)
      Overrides:
      finished in class org.junit.rules.TestWatcher