Package org.junit.experimental.theories
Class Theories.TheoryAnchor
- java.lang.Object
-
- org.junit.runners.model.Statement
-
- org.junit.experimental.theories.Theories.TheoryAnchor
-
-
Constructor Summary
Constructors Constructor Description TheoryAnchor(FrameworkMethod testMethod, TestClass testClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate()Run the action, throwing aThrowableif anything goes wrong.protected voidhandleAssumptionViolation(AssumptionViolatedException e)protected voidhandleDataPointSuccess()protected voidreportParameterizedError(java.lang.Throwable e, java.lang.Object... params)protected voidrunWithAssignment(Assignments parameterAssignment)protected voidrunWithCompleteAssignment(Assignments complete)protected voidrunWithIncompleteAssignment(Assignments incomplete)
-
-
-
Constructor Detail
-
TheoryAnchor
public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass)
-
-
Method Detail
-
evaluate
public void evaluate() throws java.lang.ThrowableDescription copied from class:StatementRun the action, throwing aThrowableif anything goes wrong.
-
runWithAssignment
protected void runWithAssignment(Assignments parameterAssignment) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
runWithIncompleteAssignment
protected void runWithIncompleteAssignment(Assignments incomplete) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
runWithCompleteAssignment
protected void runWithCompleteAssignment(Assignments complete) throws java.lang.Throwable
- Throws:
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()
-
-