| Package | Description |
|---|---|
| com.pholser.junit.quickcheck.generator | |
| com.pholser.junit.quickcheck.internal | |
| com.pholser.junit.quickcheck.internal.generator |
| Modifier and Type | Method and Description |
|---|---|
default T |
Gen._gen(SourceOfRandomness random,
GenerationStatus status)
Deprecated.
For use by junit-quickcheck only -- when we migrate to Java 9,
this method will likely become
private. |
List<T> |
Generator.doShrink(SourceOfRandomness random,
T larger)
Gives some objects that are "smaller" than a given "larger"
object.
|
protected Generators |
Generator.gen(SourceOfRandomness random) |
T |
Fields.generate(SourceOfRandomness random,
GenerationStatus status) |
T |
Ctor.generate(SourceOfRandomness random,
GenerationStatus status) |
T |
Gen.generate(SourceOfRandomness random,
GenerationStatus status)
Generates a value, possibly influenced by a source of randomness and
metadata about the generation.
|
List<T> |
Generator.shrink(SourceOfRandomness random,
Object larger)
Gives some objects that are "smaller" than a given object.
|
List<T> |
Shrink.shrink(SourceOfRandomness random,
Object larger)
Gives some objects that are "smaller" than a given object.
|
Generators |
Generators.withRandom(SourceOfRandomness random)
Makes a generator access point just like the receiver, but which
uses the given source of randomness for making random choices.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Items.choose(Collection<T> items,
SourceOfRandomness random) |
static BigInteger |
Ranges.choose(SourceOfRandomness random,
BigInteger min,
BigInteger max) |
static long |
Ranges.choose(SourceOfRandomness random,
long min,
long max) |
static <T> T |
Items.chooseWeighted(Collection<Weighted<T>> items,
SourceOfRandomness random) |
int |
GeometricDistribution.sampleWithMean(double mean,
SourceOfRandomness random) |
static <T> List<List<T>> |
Lists.shrinksOfOneItem(SourceOfRandomness random,
List<T> target,
Shrink<T> shrink) |
List<ParameterTypeContext> |
ParameterTypeContext.typeParameterContexts(SourceOfRandomness random) |
| Constructor and Description |
|---|
GeneratorRepository(SourceOfRandomness random) |
PropertyParameterGenerationContext(PropertyParameterContext parameter,
GeneratorRepository repository,
GeometricDistribution distro,
SourceOfRandomness random,
ParameterSampler sampler) |
SimpleGenerationStatus(GeometricDistribution distro,
SourceOfRandomness random,
int attempts) |
Copyright © 2019. All rights reserved.