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>
fInvalidParameters
private int
successes
private TestClass
testClass
private FrameworkMethod
testMethod
-
Constructor Summary
Constructors Constructor Description TheoryAnchor(FrameworkMethod testMethod, TestClass testClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate()
Run the action, throwing aThrowable
if anything goes wrong.private TestClass
getTestClass()
protected void
handleAssumptionViolation(AssumptionViolatedException e)
protected void
handleDataPointSuccess()
private Statement
methodCompletesWithParameters(FrameworkMethod method, Assignments complete, java.lang.Object freshInstance)
private boolean
nullsOk()
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)
-
-
-
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.Throwable
Description copied from class:Statement
Run the action, throwing aThrowable
if 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()
-
-