| Package | Description |
|---|---|
| org.exparity.stub.stub |
| Modifier and Type | Method and Description |
|---|---|
static <T> StubBuilder<T> |
StubBuilder.aRandomStubOf(Class<T> type)
Return an instance of a
StubBuilder for the given type which is
populated with random values. |
static <T> StubBuilder<T> |
StubBuilder.aRandomStubOf(TypeReference<T> type)
Return an instance of a
StubBuilder for the given generic type
which is populated with random values. |
StubBuilder<T> |
StubBuilder.collectionSizeOf(int size)
Configure the builder to set the size of a collections.
|
StubBuilder<T> |
StubBuilder.collectionSizeRangeOf(int min,
int max)
Configure the builder to set the size of a collections to within a given
range.
|
<X> StubBuilder<T> |
StubBuilder.factory(Class<X> type,
ValueFactory<X> factory)
Configure the builder to populate any properties of the given type with a
value created by the supplied value factory.
|
<X> StubBuilder<T> |
StubBuilder.subtype(Class<X> supertype,
Class<? extends X>... subtypes)
Configure the builder to use any of of a particular subtype when
instantiating a super type.
|
<X> StubBuilder<T> |
StubBuilder.subtype(Class<X> supertype,
Class<? extends X> subtype)
Configure the builder to use a particular subtype when instantiating a
super type.
|
<V> StubBuilder<T> |
StubBuilder.with(Class<V> type,
ValueFactory<V> factory)
Configure the builder to populate any properties of the given type with a
value created by the supplied value factory.
|
Copyright © 2018. All rights reserved.