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 intprivate final TestClassprivate final FrameworkMethod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate()Run the action, throwing aThrowableif anything goes wrong.private TestClassprotected voidprotected voidprivate StatementmethodCompletesWithParameters(FrameworkMethod method, Assignments complete, Object freshInstance) private booleannullsOk()protected voidreportParameterizedError(Throwable e, Object... params) protected voidrunWithAssignment(Assignments parameterAssignment) protected voidrunWithCompleteAssignment(Assignments complete) protected voidrunWithIncompleteAssignment(Assignments incomplete)
-
Field Details
-
successes
private int successes -
testMethod
-
testClass
-
fInvalidParameters
-
-
Constructor Details
-
TheoryAnchor
-
-
Method Details
-
getTestClass
-
evaluate
Description copied from class:StatementRun the action, throwing aThrowableif 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()
-