Uses of Interface
org.soliscode.test.provider.ObjectProvider
Packages that use ObjectProvider
Package
Description
Support for "breakable" objects that can be used to test contract classes.
Classes that support testing with contracts.
Classes for providing instances of classes being tested.
-
Uses of ObjectProvider in org.soliscode.test.breakable
Methods in org.soliscode.test.breakable with parameters of type ObjectProviderModifier and TypeMethodDescriptionstatic <E> @NotNull CollectionProvider
<E, BreakableCollection<E>> BreakableCollection.collectionProvider
(@NotNull ObjectProvider<E> elementProvider) Creates a collection provider for instances of BreakableCollection, given an element provider.static <E> @NotNull CollectionProvider
<E, BreakableCollection<E>> BreakableCollection.collectionProvider
(@NotNull ObjectProvider<E> elementProvider, @NotNull Set<Break> breaks) Creates a collection provider for instances ofBreakableCollection
, given an element provider and a set of breaks.static <E> @NotNull CollectionProvider
<E, BreakableIterable<E>> BreakableIterable.iterableProvider
(@NotNull ObjectProvider<E> elementProvider) static <E> @NotNull CollectionProvider
<E, BreakableIterable<E>> BreakableIterable.iterableProvider
(@NotNull ObjectProvider<E> elementProvider, @NotNull Set<Break> breaks) -
Uses of ObjectProvider in org.soliscode.test.contract.support
Methods in org.soliscode.test.contract.support that return ObjectProviderModifier and TypeMethodDescription@NotNull ObjectProvider
<E> ElementProviderSupport.elementProvider()
Returns the elements provider for the contract.default @NotNull ObjectProvider
<Integer> WithIntegerElement.elementProvider()
Returns an elements provider for instances ofInteger
..@NotNull ObjectProvider
<T> ProviderSupport.provider()
Returns an object provider that can be used to create instances of the class being tested.default @NotNull ObjectProvider
<Double> WithDouble.provider()
Returns an instance ofObjectProvider
that providesDouble
objects.default @NotNull ObjectProvider
<String> WithString.provider()
Returns an instance ofObjectProvider
that providesString
objects. -
Uses of ObjectProvider in org.soliscode.test.provider
Subinterfaces of ObjectProvider in org.soliscode.test.providerModifier and TypeInterfaceDescriptioninterface
CollectionProvider<E,
I extends Iterable<E>> Provides instances ofCollection
for use in testing.interface
DoubleNumberProvider<T extends Number>
Provides instances of a class that implements theNumber
interface that represent an integer value for the purposes of testing.interface
IntegerNumberProvider<T extends Number>
Provides instances of a class that implements theNumber
interface that represent an integer value for the purposes of testing.interface
NumberProvider<T extends Number>
Provides instances of a class that implements theNumber
interface for the purposes of testing.Classes in org.soliscode.test.provider that implement ObjectProviderModifier and TypeClassDescriptionclass
Provides instances of the classDouble
for the purposes of testing.class
Provides instances of the classFloat
for the purposes of testing.class
FunctionalCollectionProvider<E,
I extends Iterable<E>> A collection provider that uses a set of functions to construct instances of the collection.class
An provider that uses a set of functions to construct instances of the class.class
Provides instances of anInteger
for the purposes of testing.class
Provides instances of anLong
for the purposes of testing.class
Provides instances of anShort
for the purposes of testing.class
Provides instances of anString
for the purposes of testing.Methods in org.soliscode.test.provider that return ObjectProviderModifier and TypeMethodDescription@NotNull ObjectProvider
<E> CollectionProvider.elementProvider()
Returns the element provider used to create elements for instances of the collection.@NotNull ObjectProvider
<E> FunctionalCollectionProvider.elementProvider()
Methods in org.soliscode.test.provider with parameters of type ObjectProviderModifier and TypeMethodDescriptionstatic <E,
C extends Iterable<E>>
CollectionProvider<E, C> CollectionProviders.from
(@NotNull Supplier<C> defaultConstructor, @NotNull Function<C, C> copyConstructor, @NotNull Function<Collection<E>, C> collectionConstructor, @NotNull ObjectProvider<E> elementProvider) Create an instance of this collection provider that uses the methods and element provider specified in the arguments for its implementation.static <E,
I extends Iterable<E>>
FunctionalCollectionProvider<E, I> FunctionalCollectionProvider.from
(@NotNull Supplier<I> defaultConstructor, @NotNull Function<I, I> copyConstructor, @NotNull Function<Collection<E>, I> collectionConstructor, @NotNull ObjectProvider<E> elementProvider) Create an instance of this collection provider that uses the methods and element provider specified in the arguments for its implementation.static <E> @NotNull CollectionProvider
<E, ArrayList<E>> CollectionProviders.provideArrayList
(@NotNull ObjectProvider<E> elementProvider) Creates a collection provider for instances ofArrayList
with elements creates using the specifiedstatic <E> CollectionProvider
<E, HashSet<E>> CollectionProviders.provideHashSet
(@NotNull ObjectProvider<E> elementProvider) Creates a collection provider for instances ofHashSet
with elements creates using the specifiedstatic <E> CollectionProvider
<E, LinkedList<E>> CollectionProviders.provideLinkedList
(@NotNull ObjectProvider<E> elementProvider) Creates a collection provider for instances ofLinkedList
with elements creates using the specifiedConstructors in org.soliscode.test.provider with parameters of type ObjectProviderModifierConstructorDescriptionFunctionalCollectionProvider
(@NotNull Supplier<I> defaultConstructor, @NotNull Function<I, I> copyConstructor, @NotNull Function<Collection<E>, I> collectionConstructor, @NotNull ObjectProvider<E> elementProvider) Create an instance of this collection provider that uses the methods and element provider specified in the arguments for its implementation.