Package net.jqwik.api.configurators
Klasse ArbitraryConfiguratorBase
java.lang.Object
net.jqwik.api.configurators.ArbitraryConfiguratorBase
- Alle implementierten Schnittstellen:
Comparable<ArbitraryConfigurator>,ArbitraryConfigurator
@API(status=MAINTAINED,
since="1.0")
public abstract class ArbitraryConfiguratorBase
extends Object
implements ArbitraryConfigurator
Using this base class is the easiest way to make use of the configuration mechanism
described in 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:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanacceptTargetType(TypeUsage targetType) Override if configurator only works for certain types of domain objectsConfigure a givenarbitraryand return the configured instance.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden net.jqwik.api.configurators.ArbitraryConfigurator
compareTo, order
-
Konstruktordetails
-
ArbitraryConfiguratorBase
public ArbitraryConfiguratorBase()
-
-
Methodendetails
-
configure
public <T extends @Nullable Object> Arbitrary<T> configure(Arbitrary<T> arbitrary, TypeUsage targetType) Beschreibung aus Schnittstelle kopiert:ArbitraryConfiguratorConfigure a givenarbitraryand return the configured instance.- Angegeben von:
configurein SchnittstelleArbitraryConfigurator- Parameter:
arbitrary- The arbitrary instance to be configuredtargetType- The type of the object to be generated by the arbitrary- Gibt zurück:
- the newly configured arbitrary instance
-
acceptTargetType
Override if configurator only works for certain types of domain objects- Parameter:
targetType- The concrete domain type to be generated
-