org.test4j.datafilling
类 Filler

java.lang.Object
  继承者 org.test4j.datafilling.Filler
直接已知子类:
ArrayFiller, CollectionFiller, EnumFiller, MapFiller, PoJoFiller, PrimitiveFiller, StringFiller

public class Filler
extends Object


字段摘要
protected  Map<String,Type> argsTypeMap
           
protected  DataFactory strategy
           
 
构造方法摘要
Filler(DataFactory strategy, Map<String,Type> argsTypeMap)
           
 
方法摘要
static
<T> T
filling(Class clazz, Type... genericTypeArgs)
           
static
<T> T
filling(DataFactory strategy, AttributeInfo attribute)
           
static
<T> T
filling(DataFactory strategy, Class clazz, Type... genericTypeArgs)
           
static
<T> T
filling(DataFactory strategy, FillUp fillUp)
           
static
<T> T
filling(FillUp fillUp)
           
<T> T
fillingAttribute(AttributeInfo attribute)
          It manufactures and returns the value for a POJO attribute.
 Object returnAttributeDataStrategyValue(Class attributeType, AttributeStrategy attributeStrategy)
          It retrieves the value for the FillWith annotation with which the attribute was annotated
 
从类 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 checking
attributeStrategy - 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 manufactured
typeArgsMap - 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.