Skip navigation links
A B C E F O P R S T V W 

A

anEmptyInstanceOf(Class<T>) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which is populated with empty objects but collections, maps, etc which have empty objects.
anEmptyInstanceOf(Class<T>, String) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which is populated with empty objects but collections, maps, etc which have empty objects.
aNewInstanceOf(Class<T>) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a new unpopulated instance of the given type.
anInstanceOf(Class<T>) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which can then be populated with values either manually or automatically.
anInstanceOf(Class<T>, String) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which can then be populated with values either manually or automatically.
aNullValue() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a null value.
applyTo(BeanBuilder<?>) - Method in interface org.exparity.stub.random.RandomBuilder.RandomRestriction
Apply the restriction to the BeanBuilder instance.
aRandomArrayOf(ValueFactory<A>) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ArrayFactory which returns a random array of the given type.
aRandomArrayOf(Class<T>) - Static method in class org.exparity.stub.random.RandomBuilder
Build an array of randomly populated instances of the supplied type.
aRandomArrayOf(Class<T>, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build an array of randomly populated instances of the supplied type if a given size.
aRandomArrayOfEnum(Class<E>) - Static method in class org.exparity.stub.random.RandomBuilder
Build an array of random values from the supplied enumeration.
aRandomArrayOfEnum(Class<E>, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build an array of random values from the supplied enumeration of a given size.
aRandomBoolean() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Boolean.
aRandomBoolean() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Boolean.
aRandomByte() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Byte.
aRandomByte() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Byte.
aRandomByteArray() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random array of bytes
aRandomByteArray() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random array of bytes.
aRandomChar() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Character.
aRandomChar() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Character.
aRandomCollectionOf(Class<T>) - Static method in class org.exparity.stub.random.RandomBuilder
Build a collection of randomly populated instances of the supplied type.
aRandomCollectionOf(Class<T>, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build a collection of randomly populated instances of the supplied type if a given size.
aRandomDate() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Date.
aRandomDate() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Date with an year either side of today.
aRandomDecimal() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random BigDecimal.
aRandomDecimal() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random BigDecimal.
aRandomDouble() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Double.
aRandomDouble() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Double.
aRandomEnum(Class<E>) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random enum from the supplied Enum type.
aRandomEnum(Class<E>) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random instance of the supplied enumeration.
aRandomFloat() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Float.
aRandomFloat() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Float.
aRandomInstanceOf(Class<T>) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which is populated with random values.
aRandomInstanceOf(Class<T>, String) - Static method in class org.exparity.stub.bean.BeanBuilder
Return an instance of a BeanBuilder for the given type which is populated with random values.
aRandomInstanceOf(Class<T>) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random instance of the supplied type.
aRandomInstanceOf(Class<T>, RandomBuilder.RandomRestriction...) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random instance of the supplied type.
aRandomInstanceOf(Class<T>, List<RandomBuilder.RandomRestriction>) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random instance of the supplied type.
aRandomInteger() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Integer.
aRandomInteger() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Integer.
aRandomInteger(int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Integer within the supplied minumum and maximum range.
aRandomListOf(Class<T>) - Static method in class org.exparity.stub.random.RandomBuilder
Build a list of randomly populated instances of the supplied type.
aRandomListOf(Class<T>, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random list of randomly populated instances of the supplied type if a given size.
aRandomLong() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Long.
aRandomLong() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Long.
aRandomLong(int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Long within the supplied minumum and maximum range.
aRandomShort() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random Short.
aRandomShort() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Short.
aRandomShort(short, short) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random Short within the supplied minumum and maximum range.
aRandomString() - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random String.
aRandomString() - Static method in class org.exparity.stub.random.RandomBuilder
Build a random String containing alphanumeric characters.
aRandomString(int) - Static method in class org.exparity.stub.random.RandomBuilder
Build a random String containing alphanumeric characters of the specfied size.
ArrayFactory<T> - Interface in org.exparity.stub.core
Interface to be implemented by classes which can provide arrays of values to a BeanBuilder

B

BeanBuilder<T> - Class in org.exparity.stub.bean
Builder object for instantiating and populating objects which follow the Java beans standards conventions for getter/setters
BeanBuilderException - Exception in org.exparity.stub.bean
 
BeanBuilderException(String, Throwable) - Constructor for exception org.exparity.stub.bean.BeanBuilderException
 
BeanBuilderException(String) - Constructor for exception org.exparity.stub.bean.BeanBuilderException
 
build() - Method in class org.exparity.stub.bean.BeanBuilder
Build the configured instance.

C

collectionSize(int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will limit the size of all collections to the specified size
collectionSize(int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will limit the size of all collections to within the specified range
collectionSizeForPath(String, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will set the size of the collection at the specified path
collectionSizeForPath(String, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will limit the size of the collection at the specifed path
collectionSizeForPathOf(String, int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collection for a path to within a given range.
collectionSizeForProperty(String, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will set the size of the collection at the specified property
collectionSizeForProperty(String, int, int) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will limit the size of the collection at the specifed property
collectionSizeForPropertyOf(String, int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collection at a path.
collectionSizeOf(int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collections.
collectionSizeRangeForPathOf(String, int, int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collection at a path to within a given range.
collectionSizeRangeForPropertyOf(String, int, int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collection at a path to within a given range.
collectionSizeRangeOf(int, int) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to set the size of a collections to within a given range.
createValue(Class<T>, int) - Method in interface org.exparity.stub.core.ArrayFactory
Create an array of type T.
createValue() - Method in interface org.exparity.stub.core.ValueFactory
Create a value of type T.

E

excludePath(String) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to exclude the given path from being populated.
excludePath(String) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will prevent the value at the path being assigned any value
excludeProperty(String) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to exclude the given property from being populated.
excludeProperty(String) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will prevent the property being assigned any value

F

factory(Class<X>, ValueFactory<X>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate any properties of the given type with a value created by the supplied value factory.
factory(Class<T>, ValueFactory<T>) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which uses the ValueFactory to create instances of the specified type.

O

oneOf(ValueFactory<T>...) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random instance of the given type by using one of the supplied ValueFactory instances.
oneOf(Collection<ValueFactory<T>>) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns a random instance of the given type by using one of the supplied ValueFactory instances.
oneOf(T...) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which randomly returns one of the supplied instances.
oneOf(T...) - Static method in class org.exparity.stub.random.RandomBuilder
Return one of the specified range of values.
org.exparity.stub.bean - package org.exparity.stub.bean
 
org.exparity.stub.core - package org.exparity.stub.core
 
org.exparity.stub.random - package org.exparity.stub.random
 

P

path(String, Object) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given path with the supplied value.
path(String, ValueFactory<?>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given path with a value created by the supplied value factory.
path(String, Object) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which assigns the value to the specific path
path(String, ValueFactory<?>) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which assigns an ValueFactory derived value to the specific path
property(String, Object) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given property with the supplied value.
property(String, ValueFactory<?>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given property with a value created by the supplied value factory.
property(String, Object) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which assigns the value to the specific property.
property(String, ValueFactory<?>) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which assigns an ValueFactory derived value to the specific property.

R

RandomBuilder - Class in org.exparity.stub.random
Builder object for instantiating and populating random instances of Java types.
RandomBuilder() - Constructor for class org.exparity.stub.random.RandomBuilder
 
RandomBuilder.RandomRestriction - Interface in org.exparity.stub.random
Interface to be implemented by all classes which can restrict the behaviour of the random builder and how it assigns values to properties, which types, it creates, etc
RandomBuilderException - Exception in org.exparity.stub.random
 
RandomBuilderException(String, Throwable) - Constructor for exception org.exparity.stub.random.RandomBuilderException
 
RandomBuilderException(String) - Constructor for exception org.exparity.stub.random.RandomBuilderException
 

S

subtype(Class<X>, Class<? extends X>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to use a particular subtype when instantiating a super type.
subtype(Class<X>, Class<? extends X>...) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to use any of of a particular subtype when instantiating a super type.
subtype(Class<P>, Class<? extends P>) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will use the given subtype of a super type when instantiating the subtype.
subtype(Class<P>, Class<? extends P>...) - Static method in class org.exparity.stub.random.RandomBuilder
Build and instance of a RandomBuilder.RandomRestriction which will use any of the given sub types of a super type when instantiating the super type.

T

theValue(T) - Static method in class org.exparity.stub.core.ValueFactories
Creates an ValueFactory which returns the supplied value.

V

ValueFactories - Class in org.exparity.stub.core
Static factory for creating instances of ValueFactory and ArrayFactory for use in the BeanBuilder and RandomBuilder
ValueFactories() - Constructor for class org.exparity.stub.core.ValueFactories
 
ValueFactory<T> - Interface in org.exparity.stub.core
Interface to be implemented by classes which can provide values to a BeanBuilder
ValueFactoryException - Exception in org.exparity.stub.core
 
ValueFactoryException(String, Throwable) - Constructor for exception org.exparity.stub.core.ValueFactoryException
 
ValueFactoryException(String) - Constructor for exception org.exparity.stub.core.ValueFactoryException
 

W

with(String, Object) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given property or path with the supplied value.
with(Class<V>, ValueFactory<V>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate any properties of the given type with a value created by the supplied value factory.
with(String, ValueFactory<?>) - Method in class org.exparity.stub.bean.BeanBuilder
Configure the builder to populate the given property or path with a value created by the supplied value factory.
A B C E F O P R S T V W 
Skip navigation links

Copyright © 2015. All rights reserved.