org.apache.lucene.util
Class TestRuleNoInstanceHooksOverrides
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestRuleNoInstanceHooksOverrides
public TestRuleNoInstanceHooksOverrides()
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.