org.callbackparams
Class AdaptiveRule
java.lang.Object
org.callbackparams.AdaptiveRule
- Direct Known Subclasses:
- ExpectedExceptionSweeps
public abstract class AdaptiveRule
- extends Object
This alternative to JUnit-rules can be used under CallbackParams but regular
JUnit-rules can of course also be used during normal circumstances.
This alternative is useful when JUnit-rules do not work for some reason, such
as when the test-class is a JUnit-3.x style test-class or if a
@WrappedRunner
annotation specifies a runner that does not support JUnit-rules.
- Author:
- Henrik Kaipe
- See Also:
- Guide on @WrappedRunner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdaptiveRule
public AdaptiveRule()
evaluate
public abstract Object evaluate(AdaptiveRule.TestRun testRun)
throws Throwable
- Throws:
Throwable
Copyright © 2010-2013 Henrik Kaipe. All Rights Reserved.