Package org.junit.experimental.theories
Class Theories.TheoryAnchor
- java.lang.Object
-
- org.junit.runners.model.Statement
-
- org.junit.experimental.theories.Theories.TheoryAnchor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AssumptionViolatedException>fInvalidParametersprivate intsuccessesprivate TestClasstestClassprivate FrameworkMethodtestMethod
-
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.private TestClassgetTestClass()protected voidhandleAssumptionViolation(AssumptionViolatedException e)protected voidhandleDataPointSuccess()private StatementmethodCompletesWithParameters(FrameworkMethod method, Assignments complete, java.lang.Object freshInstance)private booleannullsOk()protected voidreportParameterizedError(java.lang.Throwable e, java.lang.Object... params)protected voidrunWithAssignment(Assignments parameterAssignment)protected voidrunWithCompleteAssignment(Assignments complete)protected voidrunWithIncompleteAssignment(Assignments incomplete)
-
-
-
Field Detail
-
successes
private int successes
-
testMethod
private final FrameworkMethod testMethod
-
testClass
private final TestClass testClass
-
fInvalidParameters
private java.util.List<AssumptionViolatedException> fInvalidParameters
-
-
Constructor Detail
-
TheoryAnchor
public TheoryAnchor(FrameworkMethod testMethod, TestClass testClass)
-
-
Method Detail
-
getTestClass
private TestClass getTestClass()
-
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
-
methodCompletesWithParameters
private Statement methodCompletesWithParameters(FrameworkMethod method, Assignments complete, java.lang.Object freshInstance)
-
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
-
nullsOk
private boolean nullsOk()
-
handleDataPointSuccess
protected void handleDataPointSuccess()
-
-