Registry / testing / junit-quickcheck-generators

junit-quickcheck-generators

JSON →
library0.9.5javamavenunverified

Basic generators for property-based testing with JUnit QuickCheck.

<dependency> <groupId>com.pholser</groupId> <artifactId>junit-quickcheck-generators</artifactId> <version>0.9.5</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-QUICKCHECK-G
J
junit-quickcheck-generators
testingjavav0.9.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InRange
com.pholser.junit.quickcheck.generator.InRange

Use @InRange to constrain generated values in a property test.

import com.pholser.junit.quickcheck.generator.InRange; import com.pholser.junit.quickcheck.Property; public class MyProperties { @Property public void testRange(@InRange(min = "1", max = "10") int value) { assert(value >= 1 && value <= 10); } }
Debug
Known issues
breakingRequires JUnit 4; not compatible with JUnit 5 without adapter.
fix
Use junit-quickcheck-core with JUnit 5 via junit-jupiter-engine.
affects: <0.9
Upgrade
Version history
0.9.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
junit-quickcheck-generators — mvn dependency:get junit-quickcheck-generators · libregistry