Package io.atlassian.fugue.quickcheck
Class OptionGenerator
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<T>
com.pholser.junit.quickcheck.generator.ComponentizedGenerator<io.atlassian.fugue.Option<?>>
io.atlassian.fugue.quickcheck.OptionGenerator
- All Implemented Interfaces:
com.pholser.junit.quickcheck.generator.Gen<io.atlassian.fugue.Option<?>>,com.pholser.junit.quickcheck.generator.Shrink<io.atlassian.fugue.Option<?>>
public class OptionGenerator
extends com.pholser.junit.quickcheck.generator.ComponentizedGenerator<io.atlassian.fugue.Option<?>>
Produces values of type
Option.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.atlassian.fugue.Option<?>>doShrink(com.pholser.junit.quickcheck.random.SourceOfRandomness random, io.atlassian.fugue.Option<?> larger) io.atlassian.fugue.Option<?>generate(com.pholser.junit.quickcheck.random.SourceOfRandomness random, com.pholser.junit.quickcheck.generator.GenerationStatus status) intMethods inherited from class com.pholser.junit.quickcheck.generator.ComponentizedGenerator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, componentGenerators, configure, hasComponents, provideMethods inherited from class com.pholser.junit.quickcheck.generator.Generator
canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, copy, gen, gen, magnitude, narrow, shrink, typesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pholser.junit.quickcheck.generator.Gen
_gen, filter, filterOptional, flatMap, map, times
-
Constructor Details
-
OptionGenerator
public OptionGenerator()
-
-
Method Details
-
generate
public io.atlassian.fugue.Option<?> generate(com.pholser.junit.quickcheck.random.SourceOfRandomness random, com.pholser.junit.quickcheck.generator.GenerationStatus status) -
doShrink
public List<io.atlassian.fugue.Option<?>> doShrink(com.pholser.junit.quickcheck.random.SourceOfRandomness random, io.atlassian.fugue.Option<?> larger) - Overrides:
doShrinkin classcom.pholser.junit.quickcheck.generator.Generator<io.atlassian.fugue.Option<?>>
-
numberOfNeededComponents
public int numberOfNeededComponents()- Overrides:
numberOfNeededComponentsin classcom.pholser.junit.quickcheck.generator.Generator<io.atlassian.fugue.Option<?>>
-