Skip navigation links
A B C D E F G H I J K L M N O P R S T V W Z _ 

A

addComponentGenerators(List<Generator<?>>) - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
 
addComponentGenerators(List<Generator<?>>) - Method in class com.pholser.junit.quickcheck.generator.Generator
Adds component generators to this generator.
addConstraint(When) - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
addQuantifier(When) - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
allAnnotations(AnnotatedElement) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
allAnnotationsByType(AnnotatedElement, Class<T>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
allDeclaredFieldsOf(Class<?>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
allowMixedTypes(boolean) - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
allowMixedTypes() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
Also - Annotation Type in com.pholser.junit.quickcheck.generator
Mark a parameter of a Property method with this annotation to ensure that a limited set of values are guaranteed to be used as the value of that parameter to test the property.
annotate(AnnotatedElement) - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
annotate(AnnotatedElement) - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
annotatedComponentTypes(AnnotatedType) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
annotatedElement() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
Deprecated.
This will likely go away when languages whose compilers and interpreters produce class files that support annotations on type uses.
annotatedType() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
arrayComponentContext() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
ArrayGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
attempts() - Method in interface com.pholser.junit.quickcheck.generator.GenerationStatus
 
attempts() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
attempts() - Method in class com.pholser.junit.quickcheck.internal.generator.SimpleGenerationStatus
 

B

bind(Object) - Method in class com.pholser.junit.quickcheck.internal.constraint.ConstraintEvaluator
 

C

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.
canShrink(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
canShrink(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
canShrink(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.EnumGenerator
 
CartesianIterator<T> - Class in com.pholser.junit.quickcheck.internal
 
CartesianIterator(List<Iterator<T>>) - Constructor for class com.pholser.junit.quickcheck.internal.CartesianIterator
 
cast(Object) - Method in class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
 
checkRange(Ranges.Type, T, T) - Static method in class com.pholser.junit.quickcheck.internal.Ranges
 
choose(Collection<T>, SourceOfRandomness) - Static method in class com.pholser.junit.quickcheck.internal.Items
 
choose(SourceOfRandomness, BigInteger, BigInteger) - Static method in class com.pholser.junit.quickcheck.internal.Ranges
 
choose(SourceOfRandomness, long, long) - Static method in class com.pholser.junit.quickcheck.internal.Ranges
 
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.
chooseWeighted(Collection<Weighted<T>>, SourceOfRandomness) - Static method in class com.pholser.junit.quickcheck.internal.Items
 
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.internal - package com.pholser.junit.quickcheck.internal
 
com.pholser.junit.quickcheck.internal.constraint - package com.pholser.junit.quickcheck.internal.constraint
 
com.pholser.junit.quickcheck.internal.conversion - package com.pholser.junit.quickcheck.internal.conversion
 
com.pholser.junit.quickcheck.internal.generator - package com.pholser.junit.quickcheck.internal.generator
 
com.pholser.junit.quickcheck.internal.sampling - package com.pholser.junit.quickcheck.internal.sampling
 
com.pholser.junit.quickcheck.random - package com.pholser.junit.quickcheck.random
 
com.pholser.junit.quickcheck.runner - package com.pholser.junit.quickcheck.runner
 
Comparables - Class in com.pholser.junit.quickcheck.internal
 
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
 
composed(int) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
CompositeGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
CompositeGenerator(List<Weighted<Generator<?>>>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
computeTestMethods() - Method in class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
 
configurationAnnotationsOn(AnnotatedElement) - Static method in class com.pholser.junit.quickcheck.generator.Generator
Gives a list of the GeneratorConfiguration annotations present on the given program element.
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
 
configure(Size) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
Tells this generator to produce values with a length within a specified minimum and/or maximum, inclusive, chosen with uniform distribution.
configure(Distinct) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
Tells this generator to produce values which are distinct from each other.
configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
configure(AnnotatedType) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
configure(AnnotatedElement) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
configure(ValuesOf) - Method in class com.pholser.junit.quickcheck.internal.generator.EnumGenerator
 
constraint() - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
ConstraintEvaluator - Class in com.pholser.junit.quickcheck.internal.constraint
 
ConstraintEvaluator(String) - Constructor for class com.pholser.junit.quickcheck.internal.constraint.ConstraintEvaluator
 
ConstraintEvaluator.EvaluationException - Exception in com.pholser.junit.quickcheck.internal.constraint
 
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.
constructor(Class<U>, Class<?>...) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
ConstructorInvokingStringConversion - Class in com.pholser.junit.quickcheck.internal.conversion
 
ConstructorInvokingStringConversion(Constructor<?>) - Constructor for class com.pholser.junit.quickcheck.internal.conversion.ConstructorInvokingStringConversion
 
convert(String) - Method in interface com.pholser.junit.quickcheck.conversion.StringConversion
Transform the given "raw" string" into an object of another type.
convert(String) - Method in class com.pholser.junit.quickcheck.internal.conversion.ConstructorInvokingStringConversion
 
convert(String) - Method in class com.pholser.junit.quickcheck.internal.conversion.MethodInvokingStringConversion
 
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.
createTestClass(Class<?>) - Method in class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
 
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.

D

decide(ParameterTypeContext, Only) - Static method in class com.pholser.junit.quickcheck.internal.conversion.StringConversions
 
decide(ParameterTypeContext, Also) - Static method in class com.pholser.junit.quickcheck.internal.conversion.StringConversions
 
decideGenerator(GeneratorRepository, ParameterTypeContext) - Method in interface com.pholser.junit.quickcheck.internal.ParameterSampler
 
decideGenerator(GeneratorRepository, ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.sampling.ExhaustiveParameterSampler
 
decideGenerator(GeneratorRepository, ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.sampling.TupleParameterSampler
 
defaultValueOf(Class<? extends Annotation>, String) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
discardRatio() - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
Distinct - Annotation Type in com.pholser.junit.quickcheck.generator
Mark a parameter of a Property method with this annotation to make values generated for the parameter distinct from each other.
doShrink(SourceOfRandomness, T) - Method in class com.pholser.junit.quickcheck.generator.Generator
Gives some objects that are "smaller" than a given "larger" object.
doShrink(SourceOfRandomness, Object) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
doShrink(SourceOfRandomness, Object) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 

E

effectiveSeed() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
EnumGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
EnumGenerator(Class<?>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.EnumGenerator
 
equals(Object) - Method in class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
 
equals(Object) - Method in class com.pholser.junit.quickcheck.Pair
 
evaluate() - Method in class com.pholser.junit.quickcheck.internal.constraint.ConstraintEvaluator
 
ExhaustiveDomainGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
ExhaustiveDomainGenerator(Collection<?>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.ExhaustiveDomainGenerator
 
ExhaustiveParameterSampler - Class in com.pholser.junit.quickcheck.internal.sampling
 
ExhaustiveParameterSampler(int) - Constructor for class com.pholser.junit.quickcheck.internal.sampling.ExhaustiveParameterSampler
 
explicitGenerators() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 

F

field(Class<?>, String) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce an instance of the type described by the field with the given name and containing type.
field(Field) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce instances of the type of the given reflected field.
field(Class<?>, String) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
field(Field) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
Fields<T> - Class in com.pholser.junit.quickcheck.generator
Produces instances of a class by reflecting the class's fields and generating random values for them.
Fields(Class<T>) - Constructor for class com.pholser.junit.quickcheck.generator.Fields
 
fieldsOf(Class<T>) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce an instance of the given type by reflecting the class's fields on up its class hierarchy and generating random values for them.
fieldsOf(Class<U>) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
filter(Predicate<? super T>) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by having this strategy produce random values until one satisfies the given condition, then using that value as the result.
filterOptional(Predicate<? super T>) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by having this strategy produce a random value and wrapping it in an Optional; if the value meets the given condition, the wrapping optional will be present.
findConstructor(Class<T>, Class<?>...) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
findDeclaredConstructor(Class<T>, Class<?>...) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
findField(Class<?>, String) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
findMethod(Class<?>, String, Class<?>...) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
first - Variable in class com.pholser.junit.quickcheck.Pair
 
fixedSeed() - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
flatMap(Function<? super T, ? extends Gen<? extends U>>) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by having this strategy produce a random value, then applying the given function to that value, and asking the result to produce a value.
freq(int, Gen<? extends U>) - Static method in interface com.pholser.junit.quickcheck.generator.Gen
Helper for making a weighted generator indicator for Gen.frequency(Pair, Pair[]).
frequency(Pair<Integer, Gen<? extends U>>, Pair<Integer, Gen<? extends U>>...) - Static method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by choosing one of the given generators at random with probability in proportion to their given weights, and having it generate a value.
From - Annotation Type in com.pholser.junit.quickcheck
Mark a parameter of a Property method with this annotation to have random values supplied to it via the specified Generator.

G

Gen<T> - Interface in com.pholser.junit.quickcheck.generator
Represents a strategy for generating random values.
gen() - Method in class com.pholser.junit.quickcheck.generator.Generator
 
gen(SourceOfRandomness) - Method in class com.pholser.junit.quickcheck.generator.Generator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.generator.Ctor
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.generator.Fields
 
generate(SourceOfRandomness, GenerationStatus) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Generates a value, possibly influenced by a source of randomness and metadata about the generation.
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.EnumGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.ExhaustiveDomainGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.GuaranteeValuesGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.LambdaGenerator
 
generate() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.SamplingDomainGenerator
 
generate(SourceOfRandomness, GenerationStatus) - Method in class com.pholser.junit.quickcheck.internal.generator.ZilchGenerator
 
GenerationStatus - Interface in com.pholser.junit.quickcheck.generator
Generators are fed instances of this interface on each generation so that, if they choose, they can use these instances to influence the results of a generation for a particular property parameter.
GenerationStatus.Key<T> - Class in com.pholser.junit.quickcheck.generator
Type-safe keys for setValue and valueOf.
Generator<T> - Class in com.pholser.junit.quickcheck.generator
Produces values for property parameters.
Generator(Class<T>) - Constructor for class com.pholser.junit.quickcheck.generator.Generator
 
Generator(List<Class<T>>) - Constructor for class com.pholser.junit.quickcheck.generator.Generator
Used for generators of primitives and their wrappers.
GeneratorConfiguration - Annotation Type in com.pholser.junit.quickcheck.generator
Apply this annotation to an annotation that marks property parameters, in order that the marked annotation can be used to configure generators for values of the parameter's type.
GeneratorConfigurationException - Exception in com.pholser.junit.quickcheck.generator
Raised if a problem arises when attempting to configure a generator with annotations from a property parameter.
GeneratorConfigurationException(String) - Constructor for exception com.pholser.junit.quickcheck.generator.GeneratorConfigurationException
 
GeneratorConfigurationException(String, Throwable) - Constructor for exception com.pholser.junit.quickcheck.generator.GeneratorConfigurationException
 
generatorFor(ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
GeneratorRepository - Class in com.pholser.junit.quickcheck.internal.generator
 
GeneratorRepository(SourceOfRandomness) - Constructor for class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
Generators - Interface in com.pholser.junit.quickcheck.generator
An access point for available generators.
GeometricDistribution - Class in com.pholser.junit.quickcheck.internal
 
GeometricDistribution() - Constructor for class com.pholser.junit.quickcheck.internal.GeometricDistribution
 
getRawClass() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
getTypeParameters() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
GuaranteeValuesGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
GuaranteeValuesGenerator(ExhaustiveDomainGenerator, Generator<?>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.GuaranteeValuesGenerator
 

H

halving(int) - Static method in class com.pholser.junit.quickcheck.internal.Sequences
 
halvingDecimal(BigDecimal, BigDecimal) - Static method in class com.pholser.junit.quickcheck.internal.Sequences
 
halvingIntegral(BigInteger, BigInteger) - Static method in class com.pholser.junit.quickcheck.internal.Sequences
 
handle(Object[], Runnable) - Method in class com.pholser.junit.quickcheck.hook.NilMinimalCounterexampleHook
 
handle(Object[], Runnable) - Method in interface com.pholser.junit.quickcheck.MinimalCounterexampleHook
 
hasComponents() - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
 
hasComponents() - 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.
hashCode() - Method in class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
 
hashCode() - Method in class com.pholser.junit.quickcheck.Pair
 
hasNext() - Method in class com.pholser.junit.quickcheck.internal.CartesianIterator
 

I

inRange(T, T) - Static method in class com.pholser.junit.quickcheck.internal.Comparables
 
INSTANCE - Static variable in class com.pholser.junit.quickcheck.internal.Zilch
 
instantiate(Class<T>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
instantiate(Constructor<T>, Object...) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
invoke(Method, Object, Object...) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
isArray() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
isDistinct(List<T>) - Static method in class com.pholser.junit.quickcheck.internal.Lists
 
isEnum() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
item - Variable in class com.pholser.junit.quickcheck.internal.Weighted
 
Items - Class in com.pholser.junit.quickcheck.internal
 
iterator() - Method in class com.pholser.junit.quickcheck.internal.generator.ServiceLoaderGeneratorSource
 

J

JUnitQuickcheck - Class in com.pholser.junit.quickcheck.runner
JUnit test runner for junit-quickcheck property-based tests.
JUnitQuickcheck(Class<?>) - Constructor for class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
Invoked reflectively by JUnit.
JUnitQuickcheckTestClass - Class in org.junit.runners.model
Extension of JUnit framework class for junit-quickcheck's discovery of JUnit annotations/methods/fields.
JUnitQuickcheckTestClass(Class<?>) - Constructor for class org.junit.runners.model.JUnitQuickcheckTestClass
Makes a new instance, wrapping the given test class.

K

Key(String, Class<T>) - Constructor for class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
 

L

LambdaGenerator<T,U> - Class in com.pholser.junit.quickcheck.internal.generator
 
LambdaGenerator(Class<T>, Generator<U>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.LambdaGenerator
 
Lambdas - Class in com.pholser.junit.quickcheck.generator
Helper class for creating instances of "functional interfaces".
leastMagnitude(T, T, T) - Static method in class com.pholser.junit.quickcheck.internal.Comparables
 
Lists - Class in com.pholser.junit.quickcheck.internal
 

M

magnitude(Object) - Method in class com.pholser.junit.quickcheck.generator.Generator
Gives a hint to the shrinking process as to the magnitude of the given value.
magnitude(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
magnitude(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
magnitude(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
make(Class<T>, Generator<?>...) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Makes a new generator of the given type, provides it with access to other available generators, configures it with any configuration annotations present on the generator type, and supplies it any component generators it needs.
make(Class<T>, Generator<?>...) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
makeLambda(Class<T>, Generator<U>, GenerationStatus) - Static method in class com.pholser.junit.quickcheck.generator.Lambdas
Creates an instance of a given "functional interface" type, whose single abstract method returns values of the type produced by the given generator.
map(Function<? super T, ? extends U>) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by having this strategy produce a random value, then applying the given function to that value, and returning the result.
maxShrinkDepth() - Method in class com.pholser.junit.quickcheck.internal.ShrinkControl
 
maxShrinks() - Method in class com.pholser.junit.quickcheck.internal.ShrinkControl
 
maxShrinkTime() - Method in class com.pholser.junit.quickcheck.internal.ShrinkControl
 
maybeWrap(Class<?>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
methodBlock(FrameworkMethod) - Method in class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
 
MethodInvokingStringConversion - Class in com.pholser.junit.quickcheck.internal.conversion
 
MethodInvokingStringConversion(Method) - Constructor for class com.pholser.junit.quickcheck.internal.conversion.MethodInvokingStringConversion
 
MinimalCounterexampleHook - Interface in com.pholser.junit.quickcheck
Allows access to an actual failing example.
Mode - Enum in com.pholser.junit.quickcheck
Represents different modes of execution of property-based tests.

N

name() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
name() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
narrow(Object) - Method in class com.pholser.junit.quickcheck.generator.Generator
Attempts to "narrow" the given object to the type this generator produces.
next() - Method in class com.pholser.junit.quickcheck.internal.CartesianIterator
 
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
 
numberOfComposedGenerators() - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
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.

O

oneOf(U, U...) - Static method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by choosing one of the given values at random with (approximately) equal probability.
oneOf(Gen<? extends U>, Gen<? extends U>...) - Static method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces a random value by choosing one of the given generators at random with (approximately) equal probability, and having it generate a value.
oneOf(Class<? extends T>, Class<? extends T>...) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce instances of one of a given set of related types on every generation.
oneOf(Generator<? extends T>, Generator<? extends T>...) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce instances of one of a given set of related types on every generation.
oneOf(Class<? extends T>, Class<? extends T>...) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
oneOf(Generator<? extends T>, Generator<? extends T>...) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
Only - Annotation Type in com.pholser.junit.quickcheck.generator
Mark a parameter of a Property method with this annotation to limit the set of values of that parameter used to test the property.
onMinimalCounterexample() - Method in class com.pholser.junit.quickcheck.internal.ShrinkControl
 
org.junit.runners.model - package org.junit.runners.model
 

P

Pair<F,S> - Class in com.pholser.junit.quickcheck
Typed pair of elements.
Pair(F, S) - Constructor for class com.pholser.junit.quickcheck.Pair
Makes a pair.
parameter(Parameter) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce instances of the type of the given reflected method parameter.
parameter(Parameter) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
parameter() - Method in class com.pholser.junit.quickcheck.internal.SeededValue
 
ParameterSampler - Interface in com.pholser.junit.quickcheck.internal
 
ParameterTypeContext - Class in com.pholser.junit.quickcheck.internal
 
ParameterTypeContext(String, AnnotatedType, String) - Constructor for class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
ParameterTypeContext(String, AnnotatedType, String, Map<String, Type>) - Constructor for class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
ParameterTypeContext(String, AnnotatedType, String, Type<?>, Map<String, Type<?>>) - Constructor for class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
ParameterTypeContext(Class<?>) - Constructor for class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
Produced - Annotation Type in com.pholser.junit.quickcheck
Mark a parameter of a Property method with this annotation to have random values supplied to it via one of the Generators specified by the aggregated From annotations.
produceGenerator(ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
Property - Annotation Type in com.pholser.junit.quickcheck
Mark a method on a class that is run with the JUnitQuickcheck runner with this annotation to have it run as a property-based test.
PropertyParameterContext - Class in com.pholser.junit.quickcheck.internal
 
PropertyParameterContext(ParameterTypeContext) - Constructor for class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
PropertyParameterGenerationContext - Class in com.pholser.junit.quickcheck.internal.generator
 
PropertyParameterGenerationContext(PropertyParameterContext, GeneratorRepository, GeometricDistribution, SourceOfRandomness, ParameterSampler) - Constructor for class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
PropertyParameterGenerationContext.DiscardRatioExceededException - Exception in com.pholser.junit.quickcheck.internal.generator
 
provide(Generators) - Method in class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
 
provide(Generators) - Method in class com.pholser.junit.quickcheck.generator.Ctor
 
provide(Generators) - Method in class com.pholser.junit.quickcheck.generator.Fields
 
provide(Generators) - Method in class com.pholser.junit.quickcheck.generator.Generator
Supplies the available generators to this one.
provide(Generators) - Method in class com.pholser.junit.quickcheck.internal.generator.ArrayGenerator
 
provide(Generators) - Method in class com.pholser.junit.quickcheck.internal.generator.CompositeGenerator
 
pure(U) - Static method in interface com.pholser.junit.quickcheck.generator.Gen
Gives a generation strategy that produces the given value, always.

R

Ranges - Class in com.pholser.junit.quickcheck.internal
 
Ranges.Type - Enum in com.pholser.junit.quickcheck.internal
 
Reflection - Class in com.pholser.junit.quickcheck.internal
 
reflectionException(Exception) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
ReflectionException - Exception in com.pholser.junit.quickcheck.internal
 
ReflectionException(String) - Constructor for exception com.pholser.junit.quickcheck.internal.ReflectionException
 
ReflectionException(Throwable) - Constructor for exception com.pholser.junit.quickcheck.internal.ReflectionException
 
register(Generator<?>) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
register(Iterable<Generator<?>>) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
removeFrom(List<T>, int) - Static method in class com.pholser.junit.quickcheck.internal.Lists
 

S

sample(List<PropertyParameterGenerationContext>) - Method in interface com.pholser.junit.quickcheck.internal.ParameterSampler
 
sample(List<PropertyParameterGenerationContext>) - Method in class com.pholser.junit.quickcheck.internal.sampling.ExhaustiveParameterSampler
 
sample(List<PropertyParameterGenerationContext>) - Method in class com.pholser.junit.quickcheck.internal.sampling.TupleParameterSampler
 
sampleSize() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
sampleWithMean(double, SourceOfRandomness) - Method in class com.pholser.junit.quickcheck.internal.GeometricDistribution
 
SamplingDomainGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
SamplingDomainGenerator(Set<?>) - Constructor for class com.pholser.junit.quickcheck.internal.generator.SamplingDomainGenerator
 
scanAnnotatedMembers(Map<Class<? extends Annotation>, List<FrameworkMethod>>, Map<Class<? extends Annotation>, List<FrameworkField>>) - Method in class org.junit.runners.model.JUnitQuickcheckTestClass
 
second - Variable in class com.pholser.junit.quickcheck.Pair
 
seed() - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
seed() - Method in class com.pholser.junit.quickcheck.internal.SeededValue
 
seed() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
 
SeededValue - Class in com.pholser.junit.quickcheck.internal
 
SeededValue(PropertyParameterGenerationContext) - Constructor for class com.pholser.junit.quickcheck.internal.SeededValue
 
semiAttempt() - Method in interface com.pholser.junit.quickcheck.generator.GenerationStatus
Signals part of an attempt to generate a value.
semiAttempt() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
Sequences - Class in com.pholser.junit.quickcheck.internal
 
ServiceLoaderGeneratorSource - Class in com.pholser.junit.quickcheck.internal.generator
 
ServiceLoaderGeneratorSource() - Constructor for class com.pholser.junit.quickcheck.internal.generator.ServiceLoaderGeneratorSource
 
setField(Field, Object, Object, boolean) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
setSeed(long) - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
 
setValue(GenerationStatus.Key<T>, T) - Method in interface com.pholser.junit.quickcheck.generator.GenerationStatus
Associates the given value with the given key for the duration of the generation of a value for a property parameter, or until overwritten.
shouldShrink() - Method in class com.pholser.junit.quickcheck.internal.ShrinkControl
 
shrink(SourceOfRandomness, Object) - Method in class com.pholser.junit.quickcheck.generator.Generator
Gives some objects that are "smaller" than a given object.
Shrink<T> - Interface in com.pholser.junit.quickcheck.generator
Represents a strategy for producing objects "smaller than" a given object.
shrink(SourceOfRandomness, Object) - Method in interface com.pholser.junit.quickcheck.generator.Shrink
Gives some objects that are "smaller" than a given object.
shrink(Object) - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
ShrinkControl - Class in com.pholser.junit.quickcheck.internal
 
ShrinkControl(Property) - Constructor for class com.pholser.junit.quickcheck.internal.ShrinkControl
 
shrinksOfOneItem(SourceOfRandomness, List<T>, Shrink<T>) - Static method in class com.pholser.junit.quickcheck.internal.Lists
 
SimpleGenerationStatus - Class in com.pholser.junit.quickcheck.internal.generator
 
SimpleGenerationStatus(GeometricDistribution, SourceOfRandomness, int) - Constructor for class com.pholser.junit.quickcheck.internal.generator.SimpleGenerationStatus
 
singleAbstractMethodOf(Class<?>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
singleAccessibleConstructor(Class<T>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 
size() - Method in interface com.pholser.junit.quickcheck.generator.GenerationStatus
 
Size - Annotation Type in com.pholser.junit.quickcheck.generator
Mark a parameter of a Property method with this annotation to constrain the size of values generated for the parameter.
size() - Method in class com.pholser.junit.quickcheck.internal.generator.PropertyParameterGenerationContext
 
sizeFactor(ParameterTypeContext) - Method in interface com.pholser.junit.quickcheck.internal.ParameterSampler
 
sizeFactor(ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.sampling.ExhaustiveParameterSampler
 
sizeFactor(ParameterTypeContext) - Method in class com.pholser.junit.quickcheck.internal.sampling.TupleParameterSampler
 
SourceOfRandomness - Class in com.pholser.junit.quickcheck.random
A source of randomness, fed to generators so they can produce random values for property parameters.
SourceOfRandomness(Random) - Constructor for class com.pholser.junit.quickcheck.random.SourceOfRandomness
Makes a new source of randomness.
StringConversion - Interface in com.pholser.junit.quickcheck.conversion
Describes ways of transforming string input into objects of another type.
StringConversions - Class in com.pholser.junit.quickcheck.internal.conversion
 
supertypes(Type<?>) - Static method in class com.pholser.junit.quickcheck.internal.Reflection
 

T

times(int) - Method in interface com.pholser.junit.quickcheck.generator.Gen
 
to(Class<?>) - Static method in class com.pholser.junit.quickcheck.internal.conversion.StringConversions
 
toJDKRandom() - Method in class com.pholser.junit.quickcheck.random.SourceOfRandomness
Gives a JDK source of randomness, with the same internal state as this source of randomness.
topLevel() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
Deprecated.
This will likely go away when languages whose compilers and interpreters produce class files that support annotations on type uses.
toString() - Method in class com.pholser.junit.quickcheck.generator.GenerationStatus.Key
 
toString() - Method in class com.pholser.junit.quickcheck.internal.SeededValue
 
toString() - Method in class com.pholser.junit.quickcheck.Pair
 
TupleParameterSampler - Class in com.pholser.junit.quickcheck.internal.sampling
 
TupleParameterSampler(int) - Constructor for class com.pholser.junit.quickcheck.internal.sampling.TupleParameterSampler
 
type(Class<T>, Class<?>...) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Gives a generator that can produce values of the given type, parameterized by the given "component" types.
type(Class<T>, Class<?>...) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 
type() - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
typeContext() - Method in class com.pholser.junit.quickcheck.internal.PropertyParameterContext
 
typeParameterContexts(SourceOfRandomness) - Method in class com.pholser.junit.quickcheck.internal.ParameterTypeContext
 
types() - Method in class com.pholser.junit.quickcheck.generator.Generator
 

V

validateTestMethods(List<Throwable>) - Method in class com.pholser.junit.quickcheck.runner.JUnitQuickcheck
 
value() - Method in class com.pholser.junit.quickcheck.internal.SeededValue
 
valueOf(GenerationStatus.Key<T>) - Method in interface com.pholser.junit.quickcheck.generator.GenerationStatus
Retrieves the value associated with the given key.
valueOf(String) - Static method in enum com.pholser.junit.quickcheck.internal.Ranges.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pholser.junit.quickcheck.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.pholser.junit.quickcheck.internal.Ranges.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.pholser.junit.quickcheck.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
ValuesOf - Annotation Type in com.pholser.junit.quickcheck.generator
Deprecated.
In exhaustive mode, boolean and enum parameters get the behavior of this annotation by default. In sampling mode, boolean and enum parameters have their limited domains sampled already.

W

weight - Variable in class com.pholser.junit.quickcheck.internal.Weighted
 
Weighted<T> - Class in com.pholser.junit.quickcheck.internal
 
Weighted(T, int) - Constructor for class com.pholser.junit.quickcheck.internal.Weighted
 
When - Annotation Type in com.pholser.junit.quickcheck
Mark a parameter of a Property method with this annotation to specify metadata about values generated for that parameter.
withRandom(SourceOfRandomness) - Method in interface com.pholser.junit.quickcheck.generator.Generators
Makes a generator access point just like the receiver, but which uses the given source of randomness for making random choices.
withRandom(SourceOfRandomness) - Method in class com.pholser.junit.quickcheck.internal.generator.GeneratorRepository
 

Z

Zilch - Class in com.pholser.junit.quickcheck.internal
 
ZilchGenerator - Class in com.pholser.junit.quickcheck.internal.generator
 
ZilchGenerator() - Constructor for class com.pholser.junit.quickcheck.internal.generator.ZilchGenerator
 

_

_gen(SourceOfRandomness, GenerationStatus) - Method in interface com.pholser.junit.quickcheck.generator.Gen
Deprecated.
For use by junit-quickcheck only -- when we migrate to Java 9, this method will likely become private.
A B C D E F G H I J K L M N O P R S T V W Z _ 
Skip navigation links

Copyright © 2019. All rights reserved.