org.junit.experimental.theories
Class Theories.TheoryAnchor

java.lang.Object
  extended by org.junit.runners.model.Statement
      extended by org.junit.experimental.theories.Theories.TheoryAnchor
Enclosing class:
Theories

public class Theories.TheoryAnchor
extends Statement


Constructor Summary
Theories.TheoryAnchor(FrameworkMethod method)
           
 
Method Summary
 void evaluate()
          Run the action, throwing a Throwable if anything goes wrong.
protected  void handleAssumptionViolation(AssumptionViolatedException e)
           
protected  void handleDataPointSuccess()
           
protected  void reportParameterizedError(java.lang.Throwable e, java.lang.Object... params)
           
protected  void runWithAssignment(Assignments parameterAssignment)
           
protected  void runWithCompleteAssignment(Assignments complete)
           
protected  void runWithIncompleteAssignment(Assignments incomplete)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theories.TheoryAnchor

public Theories.TheoryAnchor(FrameworkMethod method)
Method Detail

evaluate

public void evaluate()
              throws java.lang.Throwable
Description copied from class: Statement
Run the action, throwing a Throwable if anything goes wrong.

Specified by:
evaluate in class Statement
Throws:
java.lang.Throwable

runWithAssignment

protected void runWithAssignment(Assignments parameterAssignment)
                          throws java.lang.Throwable
Throws:
java.lang.Throwable

runWithIncompleteAssignment

protected void runWithIncompleteAssignment(Assignments incomplete)
                                    throws java.lang.InstantiationException,
                                           java.lang.IllegalAccessException,
                                           java.lang.Throwable
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.Throwable

runWithCompleteAssignment

protected void runWithCompleteAssignment(Assignments complete)
                                  throws java.lang.InstantiationException,
                                         java.lang.IllegalAccessException,
                                         java.lang.reflect.InvocationTargetException,
                                         java.lang.NoSuchMethodException,
                                         java.lang.Throwable
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.Throwable

handleAssumptionViolation

protected void handleAssumptionViolation(AssumptionViolatedException e)

reportParameterizedError

protected void reportParameterizedError(java.lang.Throwable e,
                                        java.lang.Object... params)
                                 throws java.lang.Throwable
Throws:
java.lang.Throwable

handleDataPointSuccess

protected void handleDataPointSuccess()