Class DebugModeTestRule

java.lang.Object
org.junit.rules.ExternalResource
com.helger.commons.junit.DebugModeTestRule
All Implemented Interfaces:
org.junit.rules.TestRule

public final class DebugModeTestRule extends org.junit.rules.ExternalResource
A JUnit test rule that sets global debug and trace flag for a test
Author:
Philip Helger
  • Field Details

    • ENABLE_GLOBAL_DEBUG

      public static final boolean ENABLE_GLOBAL_DEBUG
      When this rule is used, global debug is enabled.
      See Also:
  • Constructor Details

    • DebugModeTestRule

      public DebugModeTestRule()
    • DebugModeTestRule

      public DebugModeTestRule(boolean bDebug)
  • Method Details

    • before

      public void before() throws Throwable
      Overrides:
      before in class org.junit.rules.ExternalResource
      Throws:
      Throwable
    • after

      public void after()
      Overrides:
      after in class org.junit.rules.ExternalResource