Class RequireAssertionsRule
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.rules.TestRuleAdapter
-
- com.carrotsearch.randomizedtesting.rules.RequireAssertionsRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class RequireAssertionsRule extends TestRuleAdapter
Require assertionsTestRule
.- See Also:
ClassRule
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
targetClass
static boolean
TEST_ASSERTS_ENABLED
-
Constructor Summary
Constructors Constructor Description RequireAssertionsRule(java.lang.Class<?> targetClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
before()
Always called before the delegateStatement
.-
Methods inherited from class com.carrotsearch.randomizedtesting.rules.TestRuleAdapter
afterAlways, afterIfSuccessful, apply
-
-
-
-
Method Detail
-
before
protected void before() throws java.lang.Throwable
Description copied from class:TestRuleAdapter
Always called before the delegateStatement
.- Overrides:
before
in classTestRuleAdapter
- Throws:
java.lang.Throwable
-
-