Package com.helger.commons.junit
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhen this rule is used, global debug is enabled. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.junit.rules.ExternalResource
apply
-
Field Details
-
ENABLE_GLOBAL_DEBUG
public static final boolean ENABLE_GLOBAL_DEBUGWhen this rule is used, global debug is enabled.- See Also:
-
-
Constructor Details
-
DebugModeTestRule
public DebugModeTestRule() -
DebugModeTestRule
public DebugModeTestRule(boolean bDebug)
-
-
Method Details
-
before
- Overrides:
beforein classorg.junit.rules.ExternalResource- Throws:
Throwable
-
after
public void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-