org.test4j.datafilling
类 Filler
java.lang.Object
org.test4j.datafilling.Filler
- 直接已知子类:
- ArrayFiller, CollectionFiller, EnumFiller, MapFiller, PoJoFiller, PrimitiveFiller, StringFiller
public class Filler
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
strategy
protected DataFactory strategy
argsTypeMap
protected Map<String,Type> argsTypeMap
Filler
public Filler(DataFactory strategy,
Map<String,Type> argsTypeMap)
returnAttributeDataStrategyValue
public Object returnAttributeDataStrategyValue(Class attributeType,
AttributeStrategy attributeStrategy)
throws Exception
- It retrieves the value for the
FillWith annotation with which the
attribute was annotated
- 参数:
attributeType - The attribute type, used for type checkingattributeStrategy - The AttributeStrategy to use
- 返回:
- The value for the
FillWith annotation with which the
attribute was annotated
- 抛出:
Exception
fillingAttribute
public <T> T fillingAttribute(AttributeInfo attribute)
throws Exception
- It manufactures and returns the value for a POJO attribute.
- 参数:
attribute - The type of the attribute for which a value is being
manufacturedtypeArgsMap - a map relating the generic class arguments (""
for example) with their actual types
- 返回:
- The value for an attribute
- 抛出:
Exception
filling
public static <T> T filling(Class clazz,
Type... genericTypeArgs)
filling
public static <T> T filling(DataFactory strategy,
FillUp fillUp)
filling
public static <T> T filling(FillUp fillUp)
filling
public static <T> T filling(DataFactory strategy,
Class clazz,
Type... genericTypeArgs)
filling
public static <T> T filling(DataFactory strategy,
AttributeInfo attribute)
Copyright © 2013. All rights reserved.