Interface Arbitrary<T>
- Type Parameters:
T
- the type of the property
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An extension point that allows providing a custom implementation strategy to
generate samples for a property under the test.
- Since:
- 3.6.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> Arbitrary<A>
fromStream
(BaseStream<A, ?> stream) Creates theArbitrary
instance from theBaseStream
instance.Returns the generator instance of a property under the test
-
Method Details
-
generator
ArbitraryGenerator<T> generator()Returns the generator instance of a property under the test- Returns:
- the generator instance
- Since:
- 3.6.0
-
fromStream
Creates theArbitrary
instance from theBaseStream
instance.- Type Parameters:
A
- the type of the property- Parameters:
stream
- the sourceBaseStream
instance- Returns:
- an
Arbitrary
instance - Since:
- 3.6.0
-