junit-quickcheck
Version: 0.8
Last Published: March 08, 2018
junit-quickcheck
Introduction
Download
Javadoc
Discuss
License
Use
Getting Started
Basic Types
Generating Values of Other Types
Configuring Generators
Constraining Generated Values
Generating Values of Complex Types
Verification Modes
Seed
Shrinking
Contract Tests
Background
History
Migrating from Theories
Similar Projects
Miscellaneous
Source Repository
Issue Tracking
Team
Dependency Management
Distribution Management
Plugin Management
Plugins
Reports
junit-quickcheck-core
junit-quickcheck-generators
junit-quickcheck-guava
Migrating from theories to properties
Instead of the
Theories
runner, with
@Theory
methods with parameters marked
@ForAll
, we use the
JUnitQuickcheck
runner, with
@Property
methods.
There are
Property.trials()
executions of the property, instead of a combinatorial number of executions of a
Theory
Use the
@When
annotation to control seed and parameter value generation if desired
You can still mark property parameters with configuration annotations, just like you did with
@ForAll
theory parameters
Your generators should work the same as before