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() |
protected org.junit.runners.model.TestClass |
createTestClass(Class<?> testClass) |
org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.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, withPotentialTimeoutpublic 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.BlockJUnit4ClassRunnerprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerpublic org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
methodBlock in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.TestClass createTestClass(Class<?> testClass)
createTestClass in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>Copyright © 2019. All rights reserved.