org.callbackparams
Class AdaptiveRule

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

Nested Class Summary
static interface AdaptiveRule.TestRun
           
 
Constructor Summary
AdaptiveRule()
           
 
Method Summary
abstract  Object evaluate(AdaptiveRule.TestRun testRun)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptiveRule

public AdaptiveRule()
Method Detail

evaluate

public abstract Object evaluate(AdaptiveRule.TestRun testRun)
                         throws Throwable
Throws:
Throwable


Copyright © 2010-2013 Henrik Kaipe. All Rights Reserved.