Registry / testing / junit-quickcheck-core

junit-quickcheck-core

JSON →
library0.9.5javamavenunverified

Property-based testing framework integrated with JUnit.

<dependency> <groupId>com.pholser</groupId> <artifactId>junit-quickcheck-core</artifactId> <version>0.9.5</version> </dependency>
INSTALL
IMPORT
SIG · JUNIT-QUICKCHECK-C
J
junit-quickcheck-core
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.

Property
com.pholser.junit.quickcheck.core.Property

Define a property-based test using JUnit QuickCheck.

import com.pholser.junit.quickcheck.core.Property; import com.pholser.junit.quickcheck.runner.JUnitQuickcheck; import org.junit.runner.RunWith; @RunWith(JUnitQuickcheck.class) public class Example { @Property public void testProperty(int x) { assert x >= 0 || x < 0; } }
Debug
Known issues
breakingJUnit QuickCheck requires JUnit 4 and may conflict with JUnit 5.
fix
Use JUnit 4 or migrate to JUnit 5 with the quickcheck extension.
affects: <=0.9.5
Upgrade
Version history
0.9.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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