| Modifier and Type | Method and Description |
|---|---|
static <T> BeanBuilder<T> |
BeanBuilder.anEmptyInstanceOf(java.lang.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(java.lang.Class<T> type,
java.lang.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(java.lang.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(java.lang.Class<T> type,
java.lang.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(java.lang.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(java.lang.Class<T> type,
java.lang.String rootName)
Return an instance of a
BeanBuilder for the given type which is populated with random values. |
BeanBuilder<T> |
BeanBuilder.collectionSizeForPathOf(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String path)
Configure the builder to exclude the given path from being populated.
|
BeanBuilder<T> |
BeanBuilder.excludeProperty(java.lang.String propertyName)
Configure the builder to exclude the given property from being populated.
|
<X> BeanBuilder<T> |
BeanBuilder.factory(java.lang.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(java.lang.String path,
java.lang.Object value)
Configure the builder to populate the given path with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.path(java.lang.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(java.lang.String propertyName,
java.lang.Object value)
Configure the builder to populate the given property with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.property(java.lang.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(java.lang.Class<X> supertype,
java.lang.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(java.lang.Class<X> supertype,
java.lang.Class<? extends X> subtype)
Configure the builder to use a particular subtype when instantiating a super type.
|
<V> BeanBuilder<T> |
BeanBuilder.with(java.lang.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(java.lang.String propertyOrPathName,
java.lang.Object value)
Configure the builder to populate the given property or path with the supplied value.
|
BeanBuilder<T> |
BeanBuilder.with(java.lang.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 © 2014. All Rights Reserved.