Package org.junit.experimental.theories
Class Theories.TheoryAnchor
java.lang.Object
org.junit.runners.model.Statement
org.junit.experimental.theories.Theories.TheoryAnchor
- Enclosing class:
- Theories
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AssumptionViolatedException>
private int
private final TestClass
private final FrameworkMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate()
Run the action, throwing aThrowable
if anything goes wrong.private TestClass
protected void
protected void
private Statement
methodCompletesWithParameters
(FrameworkMethod method, Assignments complete, Object freshInstance) private boolean
nullsOk()
protected void
reportParameterizedError
(Throwable e, Object... params) protected void
runWithAssignment
(Assignments parameterAssignment) protected void
runWithCompleteAssignment
(Assignments complete) protected void
runWithIncompleteAssignment
(Assignments incomplete)
-
Field Details
-
successes
private int successes -
testMethod
-
testClass
-
fInvalidParameters
-
-
Constructor Details
-
TheoryAnchor
-
-
Method Details
-
getTestClass
-
evaluate
Description copied from class:Statement
Run the action, throwing aThrowable
if anything goes wrong. -
runWithAssignment
- Throws:
Throwable
-
runWithIncompleteAssignment
- Throws:
Throwable
-
runWithCompleteAssignment
- Throws:
Throwable
-
methodCompletesWithParameters
private Statement methodCompletesWithParameters(FrameworkMethod method, Assignments complete, Object freshInstance) -
handleAssumptionViolation
-
reportParameterizedError
- Throws:
Throwable
-
nullsOk
private boolean nullsOk() -
handleDataPointSuccess
protected void handleDataPointSuccess()
-