|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DataProviderStrategy | |
---|---|
uk.co.jemos.podam.api | This package contains PODAM public APIs |
Uses of DataProviderStrategy in uk.co.jemos.podam.api |
---|
Classes in uk.co.jemos.podam.api that implement DataProviderStrategy | |
---|---|
class |
RandomDataProviderStrategy
Default implementation of a DataProviderStrategy |
Methods in uk.co.jemos.podam.api with parameters of type DataProviderStrategy | ||
---|---|---|
private static Object |
PodamFactory.createNewInstanceForClassWithoutSetters(DataProviderStrategy strategy,
Class<?> clazz)
It attempts to create an instance of the given class |
|
private static Byte |
PodamFactory.getByteValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
It returns a random byte if the attribute was annotated with PodamByteValue or null otherwise |
|
private static Character |
PodamFactory.getCharacterValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
It creates and returns a random Character value |
|
private static Double |
PodamFactory.getDoubleValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
It creates and returns a random Double value |
|
private static Float |
PodamFactory.getFloatValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
Returns either a customised float value if a PodamFloatValue
annotation was provided or a random float if this was not the case |
|
private static Integer |
PodamFactory.getIntValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
Returns either a customised int value if a PodamIntValue
annotation was provided or a random integer if this was not the case |
|
private static Long |
PodamFactory.getLongValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
Returns either a customised long value if a PodamLongValue
annotation was provided or a random long if this was not the case |
|
private static Short |
PodamFactory.getShortValueWithinRange(DataProviderStrategy strategy,
List<Annotation> annotations)
It returns a random short if the attribute was annotated with PodamShortValue or null otherwise |
|
private static Object |
PodamFactory.manufactureAttributeValue(DataProviderStrategy strategy,
Class<?> pojoClass,
Class<?> attributeType,
List<Annotation> annotations,
String attributeName)
It manufactures and returns the value for a POJO attribute. |
|
static
|
PodamFactory.manufacturePojo(Class<T> pojoClass,
DataProviderStrategy strategy)
Generic method which returns an instance of the given class filled with dummy values |
|
private static
|
PodamFactory.manufacturePojoInternal(DataProviderStrategy strategy,
Class<T> pojoClass,
int depth)
Generic method which returns an instance of the given class filled with dummy values |
|
private static Object |
PodamFactory.resolveArrayElementValue(DataProviderStrategy strategy,
Class<?> attributeType,
List<Annotation> annotations,
Class<?> pojoClass,
String attributeName)
It returns an Array with the first element set |
|
private static Collection<? super Object> |
PodamFactory.resolveCollectionValueWhenCollectionIsPojoAttribute(DataProviderStrategy strategy,
Class<?> pojoClass,
Class<?> collectionType,
String attributeName,
List<Annotation> annotations)
It returns a collection of some sort with some data in it. |
|
private static Map<? super Object,? super Object> |
PodamFactory.resolveMapValueWhenMapIsPojoAttribute(DataProviderStrategy strategy,
Class<?> pojoClass,
Class<?> attributeType,
String attributeName,
List<Annotation> annotations)
It manufactures and returns a Map with at least one element in it |
|
private static
|
PodamFactory.resolvePojoWithoutDefaultConstructor(DataProviderStrategy strategy,
Class<T> pojoClass,
int depth)
It creates and returns an instance of the given class if at least one of its constructors has been annotated with PodamConstructor |
|
private static Object |
PodamFactory.resolvePrimitiveValue(DataProviderStrategy strategy,
Class<?> primitiveClass,
List<Annotation> annotations)
It resolves and returns the primitive value depending on the type |
|
private static String |
PodamFactory.resolveStringValue(DataProviderStrategy strategy,
List<Annotation> annotations)
It creates and returns a String value, eventually customised by annotations |
|
private static Object |
PodamFactory.resolveWrapperValue(DataProviderStrategy strategy,
Class<?> candidateWrapperClass,
List<Annotation> annotations)
It attempts to resolve the given class as a wrapper class and if this is the case it assigns a random value |
|
Jemos 2002 - 2011: All Rights Reserved. Podam runs under the MIT license | |||||||||
PREV NEXT | FRAMES NO FRAMES |