org.apache.lucene.util
Class TestRuleNoStaticHooksShadowing
java.lang.Object
org.apache.lucene.util.TestRuleNoStaticHooksShadowing
- All Implemented Interfaces:
- com.carrotsearch.randomizedtesting.ClassValidator, org.junit.rules.TestRule
public class TestRuleNoStaticHooksShadowing
- extends Object
- implements org.junit.rules.TestRule, com.carrotsearch.randomizedtesting.ClassValidator
Don't allow shadowing of BeforeClass
or AfterClass
hooks
as it is very likely a user error and will prevent execution of shadowed hooks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestRuleNoStaticHooksShadowing
public TestRuleNoStaticHooksShadowing()
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
Description description)
- Specified by:
apply
in interface org.junit.rules.TestRule
validate
public void validate(Class<?> clazz)
throws Throwable
- Specified by:
validate
in interface com.carrotsearch.randomizedtesting.ClassValidator
- Throws:
Throwable
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.