public class JUnitQuickcheck extends BlockJUnit4ClassRunner
JUnit test runner for junit-quickcheck property-based tests.
When this runner runs a given test class, it regards only
public instance methods with a return type of void that are
marked with either the Property
annotation or the org.junit.Test annotation.
This runner honors Rule, Before,
After, BeforeClass, and
AfterClass. Their execution is wrapped around the
verification of a property or execution of a test in the expected
order.
| Constructor and Description |
|---|
JUnitQuickcheck(Class<?> clazz)
Invoked reflectively by JUnit.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<FrameworkMethod> |
computeTestMethods() |
Statement |
methodBlock(FrameworkMethod method) |
protected void |
validateTestMethods(List<Throwable> errors) |
collectInitializationErrors, createTest, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutchildrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic JUnitQuickcheck(Class<?> clazz) throws InitializationError
clazz - class containing properties to verifyInitializationError - if there is a problem with the properties classprotected void validateTestMethods(List<Throwable> errors)
validateTestMethods in class BlockJUnit4ClassRunnerprotected List<FrameworkMethod> computeTestMethods()
computeTestMethods in class BlockJUnit4ClassRunnerpublic Statement methodBlock(FrameworkMethod method)
methodBlock in class BlockJUnit4ClassRunner© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu