Class PropertyVerifier
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.pholser.junit.quickcheck.runner.PropertyVerifier
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
class PropertyVerifier
extends org.junit.runners.BlockJUnit4ClassRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object[]private final org.junit.runners.model.FrameworkMethodprivate final Consumer<org.junit.internal.AssumptionViolatedException>private final BiConsumer<AssertionError,Runnable> private final long[] -
Constructor Summary
ConstructorsConstructorDescriptionPropertyVerifier(org.junit.runners.model.TestClass clazz, org.junit.runners.model.FrameworkMethod method, Object[] args, long[] seeds, Consumer<Void> onSuccess, Consumer<org.junit.internal.AssumptionViolatedException> onAssumptionViolated, BiConsumer<AssertionError, Runnable> onFailure) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectInitializationErrors(List<Throwable> errors) private org.junit.runners.model.Statementprotected org.junit.runners.model.StatementmethodInvoker(org.junit.runners.model.FrameworkMethod frameworkMethod, Object test) private void(package private) voidverify()Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Field Details
-
method
private final org.junit.runners.model.FrameworkMethod method -
args
-
seeds
private final long[] seeds -
onSuccess
-
onAssumptionViolated
-
onFailure
-
-
Constructor Details
-
PropertyVerifier
PropertyVerifier(org.junit.runners.model.TestClass clazz, org.junit.runners.model.FrameworkMethod method, Object[] args, long[] seeds, Consumer<Void> onSuccess, Consumer<org.junit.internal.AssumptionViolatedException> onAssumptionViolated, BiConsumer<AssertionError, Runnable> onFailure) throws org.junit.runners.model.InitializationError- Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
verify
- Throws:
Throwable
-
methodBlock
private org.junit.runners.model.Statement methodBlock() -
collectInitializationErrors
- Overrides:
collectInitializationErrorsin classorg.junit.runners.BlockJUnit4ClassRunner
-
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod frameworkMethod, Object test) - Overrides:
methodInvokerin classorg.junit.runners.BlockJUnit4ClassRunner
-
reportErrorWithArguments
-