Class SystemPropertiesExtension

java.lang.Object
org.operaton.bpm.engine.test.junit5.SystemPropertiesExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

public final class SystemPropertiesExtension extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
Extension as replacement for SystemPropertiesRule to restore system properties after a test.
  • Field Details

  • Method Details

    • resetPropsAfterTest

      public static SystemPropertiesExtension resetPropsAfterTest()
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback