@API(status=MAINTAINED,
since="1.0")
public abstract class ArbitraryConfiguratorBase
extends java.lang.Object
implements ArbitraryConfigurator
Implementations must be registered in /META-INF/services/net.jqwik.api.configurators.ArbitraryConfigurator
so that they will be automatically considered for arbitrary configuration.
Some examples that come with jqwik:
| Constructor and Description |
|---|
ArbitraryConfiguratorBase() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptTargetType(TypeUsage targetType)
Override if configurator only works for certain types of domain objects
|
<T> Arbitrary<T> |
configure(Arbitrary<T> arbitrary,
TypeUsage targetType)
Configure a given
arbitrary and return the configured instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTo, orderpublic <T> Arbitrary<T> configure(Arbitrary<T> arbitrary, TypeUsage targetType)
ArbitraryConfiguratorarbitrary and return the configured instance.configure in interface ArbitraryConfiguratorarbitrary - The arbitrary instance to be configuredtargetType - The type of the object to be generated by the arbitraryprotected boolean acceptTargetType(TypeUsage targetType)
targetType - The concrete domain type to be generated