org.apache.lucene.util
Class TestRuleNoStaticHooksShadowing

java.lang.Object
  extended by 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.


Constructor Summary
TestRuleNoStaticHooksShadowing()
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, Description description)
           
 void validate(Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRuleNoStaticHooksShadowing

public TestRuleNoStaticHooksShadowing()
Method Detail

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.