public class JUnitQuickcheck
extends org.junit.runners.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<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method) |
protected void |
validateTestMethods(List<Throwable> errors) |
collectInitializationErrors, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
public JUnitQuickcheck(Class<?> clazz) throws org.junit.runners.model.InitializationError
clazz
- class containing properties to verifyorg.junit.runners.model.InitializationError
- if there is a problem with the
properties classprotected void validateTestMethods(List<Throwable> errors)
validateTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
public org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
methodBlock
in class org.junit.runners.BlockJUnit4ClassRunner
© Copyright 2010-2020 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu