- canGenerateForParametersOfTypes(List<TypeParameter<?>>) - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
-
- canGenerateForParametersOfTypes(List<TypeParameter<?>>) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
- canRegisterAsType(Class<?>) - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
-
Tells whether this generator is allowed to be used for property
parameters of the given type.
- canRegisterAsType(Class<?>) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
Tells whether this generator is allowed to be used for property
parameters of the given type.
- canShrink(Object) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
Tells whether this generator is allowed to participate in the
Shrink
process for the given "larger" value.
- cast(Object) - Method in class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
-
- choose(Collection<T>) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random element of the given collection.
- choose(T[]) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random element of the given array.
- com.pholser.junit.quickcheck - package com.pholser.junit.quickcheck
-
- com.pholser.junit.quickcheck.conversion - package com.pholser.junit.quickcheck.conversion
-
- com.pholser.junit.quickcheck.generator - package com.pholser.junit.quickcheck.generator
-
- com.pholser.junit.quickcheck.hook - package com.pholser.junit.quickcheck.hook
-
- com.pholser.junit.quickcheck.random - package com.pholser.junit.quickcheck.random
-
- com.pholser.junit.quickcheck.runner - package com.pholser.junit.quickcheck.runner
-
- compatibleWithTypeParameter(TypeParameter<?>, Class<?>) - Static method in class com.pholser.junit.quickcheck.generator.Generator
-
- componentGenerators() - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
-
- ComponentizedGenerator<T> - Class in com.pholser.junit.quickcheck.generator
-
Produces values for property parameters of types that have parameterizations
that would also need generation, such as collections, maps, and predicates.
- ComponentizedGenerator(Class<T>) - Constructor for class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
-
- computeTestMethods() - Method in class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
-
- configurationAnnotationsOn(AnnotatedElement) - Static method in class com.pholser.junit.quickcheck.generator.Generator
-
- configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
-
- configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.generator.Ctor
-
- configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.generator.Fields
-
- configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
Configures this generator using annotations from a given annotated
type.
- configure(AnnotatedElement) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
- constructor(Class<T>, Class<?>...) - Method in interface com.pholser.junit.quickcheck.generator.Generators
-
Gives a generator that can produce an instance of the type described
by a constructor of a given type that accepts the given types of
arguments.
- convert(String) - Method in interface com.pholser.junit.quickcheck.conversion.StringConversion
-
Transform the given "raw" string" into an object of another type.
- copy() - Method in class com.pholser.junit.quickcheck.generator.Ctor
-
- copy() - Method in class com.pholser.junit.quickcheck.generator.Fields
-
- copy() - Method in class com.pholser.junit.quickcheck.generator.Generator
-
Used by the framework to make a copy of the receiver.
- Ctor<T> - Class in com.pholser.junit.quickcheck.generator
-
Produces instances of a class by generating values for the parameters of
one of the constructors on the class, and invoking the constructor.
- Ctor(Class<T>) - Constructor for class com.pholser.junit.quickcheck.generator.Ctor
-
Reflects the given type for a single accessible constructor to be used
to generate values of that type.
- Ctor(Constructor<T>) - Constructor for class com.pholser.junit.quickcheck.generator.Ctor
-
Uses the given constructor to generate values of the declaring type.
- narrow(Object) - Method in class com.pholser.junit.quickcheck.generator.Generator
-
Attempts to "narrow" the given object to the type this generator
produces.
- nextBigInteger(int) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random BigInteger
representable by the given number
of bits.
- nextBoolean() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextByte(byte, byte) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random byte
value, uniformly distributed across the
interval [min, max]
.
- nextBytes(byte[]) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextBytes(int) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives an array of a given length containing random bytes.
- nextChar(char, char) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random char
value, uniformly distributed across the
interval [min, max]
.
- nextDouble() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextDouble(double, double) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random double
value in the interval
[min, max)
.
- nextDuration(Duration, Duration) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random Duration
value, uniformly distributed across the
interval [min, max]
.
- nextFloat() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextFloat(float, float) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random float
value in the interval
[min, max)
.
- nextGaussian() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextInstant(Instant, Instant) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random Instant
value, uniformly distributed across the
interval [min, max]
.
- nextInt() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextInt(int) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextInt(int, int) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random int
value, uniformly distributed across the
interval [min, max]
.
- nextLong() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
- nextLong(long, long) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random long
value, uniformly distributed across the
interval [min, max]
.
- nextShort(short, short) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
-
Gives a random short
value, uniformly distributed across the
interval [min, max]
.
- NilMinimalCounterexampleHook - Class in com.pholser.junit.quickcheck.hook
-
Counterexample hook that does nothing.
- NilMinimalCounterexampleHook() - Constructor for class com.pholser.junit.quickcheck.hook.NilMinimalCounterexampleHook
-
- NullAllowed - Annotation Type in com.pholser.junit.quickcheck.generator
-
Mark a parameter of a
Property
method with this annotation to indicate that the parameter is nullable, and
to optionally configure the probability of generating a null value.
- numberOfNeededComponents() - Method in class com.pholser.junit.quickcheck.generator.Generator
-
This is intended for use only by junit-quickcheck itself, and not by
creators of custom generators.