| Package | Description |
|---|---|
| org.exparity.stub.bean | |
| org.exparity.stub.random |
| Modifier and Type | Method and Description |
|---|---|
static <T> BeanBuilder<T> |
BeanBuilder.anEmptyInstanceOf(Class<T> type)
Return an instance of a
BeanBuilder for the given type which is populated with empty objects but
collections, maps, etc which have empty objects. |
static <T> BeanBuilder<T> |
BeanBuilder.anEmptyInstanceOf(Class<T> type,
String rootName)
Return an instance of a
BeanBuilder for the given type which is populated with empty objects but
collections, maps, etc which have empty objects. |
static <T> BeanBuilder<T> |
BeanBuilder.anInstanceOf(Class<T> type)
Return an instance of a
BeanBuilder for the given type which can then be populated with values either
manually or automatically. |
static <T> BeanBuilder<T> |
BeanBuilder.anInstanceOf(Class<T> type,
String rootName)
Return an instance of a
BeanBuilder for the given type which can then be populated with values either
manually or automatically. |
static <T> BeanBuilder<T> |
BeanBuilder.aRandomInstanceOf(Class<T> type)
Return an instance of a
BeanBuilder for the given type which is populated with random values. |
static <T> BeanBuilder<T> |
BeanBuilder.aRandomInstanceOf(Class<T> type,
String rootName)
Return an instance of a
BeanBuilder for the given type which is populated with random values. |
BeanBuilder<T> |
BeanBuilder.collectionSizeForPathOf(String path,
int size)
Configure the builder to set the size of a collection for a path to within a given range.
|
BeanBuilder<T> |
BeanBuilder.collectionSizeForPropertyOf(String property,
int size)
Configure the builder to set the size of a collection at a path.
|
BeanBuilder<T> |
BeanBuilder.collectionSizeOf(int size)
Configure the builder to set the size of a collections.
|
BeanBuilder<T> |
BeanBuilder.collectionSizeRangeForPathOf(String path,
int min,
int max)
Configure the builder to set the size of a collection at a path to within a given range.
|
BeanBuilder<T> |
BeanBuilder.collectionSizeRangeForPropertyOf(String property,
int min,
int max)
Configure the builder to set the size of a collection at a path to within a given range.
|
BeanBuilder<T> |
BeanBuilder.collectionSizeRangeOf(int min,
int max)
Configure the builder to set the size of a collections to within a given range.
|
BeanBuilder<T> |
BeanBuilder.excludePath(String path)
Configure the builder to exclude the given path from being populated.
|
BeanBuilder<T> |
BeanBuilder.excludeProperty(String propertyName)
Configure the builder to exclude the given property from being populated.
|
<X> BeanBuilder<T> |
BeanBuilder.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.
|
BeanBuilder<T> |
BeanBuilder.path(String path,
Object value)
Configure the builder to populate the given path with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.path(String path,
ValueFactory<?> factory)
Configure the builder to populate the given path with a value created by the supplied value factory.
|
BeanBuilder<T> |
BeanBuilder.property(String propertyName,
Object value)
Configure the builder to populate the given property with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.property(String propertyName,
ValueFactory<?> factory)
Configure the builder to populate the given property with a value created by the supplied value factory.
|
<X> BeanBuilder<T> |
BeanBuilder.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> BeanBuilder<T> |
BeanBuilder.subtype(Class<X> supertype,
Class<? extends X> subtype)
Configure the builder to use a particular subtype when instantiating a super type.
|
<V> BeanBuilder<T> |
BeanBuilder.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.
|
BeanBuilder<T> |
BeanBuilder.with(String propertyOrPathName,
Object value)
Configure the builder to populate the given property or path with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.with(String propertyOrPathName,
ValueFactory<?> factory)
Configure the builder to populate the given property or path with a value created by the supplied value factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RandomBuilder.RandomRestriction.applyTo(BeanBuilder<?> builder)
Apply the restriction to the
BeanBuilder instance. |
Copyright © 2018. All rights reserved.