org.apache.lucene.util
Class TestRuleNoInstanceHooksOverrides

java.lang.Object
  extended by org.apache.lucene.util.TestRuleNoInstanceHooksOverrides
All Implemented Interfaces:
com.carrotsearch.randomizedtesting.ClassValidator, org.junit.rules.TestRule

public class TestRuleNoInstanceHooksOverrides
extends Object
implements org.junit.rules.TestRule, com.carrotsearch.randomizedtesting.ClassValidator

Don't allow Before and After hook overrides as it is most likely a user error and will result in superclass methods not being called (requires manual chaining).


Constructor Summary
TestRuleNoInstanceHooksOverrides()
           
 
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

TestRuleNoInstanceHooksOverrides

public TestRuleNoInstanceHooksOverrides()
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.