类 org.test4j.datafilling.common.AttributeInfo
的使用

使用 AttributeInfo 的软件包
org.test4j.datafilling   
org.test4j.datafilling.common   
org.test4j.datafilling.filler   
org.test4j.datafilling.filler.pojo   
org.test4j.datafilling.filler.primitive   
org.test4j.datafilling.strategy   
 

org.test4j.datafillingAttributeInfo 的使用
 

参数类型为 AttributeInfoorg.test4j.datafilling 中的方法
static
<T> T
Filler.filling(DataFactory strategy, AttributeInfo attribute)
           
<T> T
Filler.fillingAttribute(AttributeInfo attribute)
          It manufactures and returns the value for a POJO attribute.
 

org.test4j.datafilling.commonAttributeInfo 的使用
 

返回 AttributeInfoorg.test4j.datafilling.common 中的方法
static AttributeInfo AttributeInfo.exactArgAttributeInfo(Type argType, Map<String,Type> typeArgsMap)
          根据泛型参数类型和泛型名称类型对应表析取泛型具体类型及其泛型参数列表
 AttributeInfo AttributeInfo.getArgTypeAttribute(int index, Map<String,Type> typeArgsMap)
          返回第n个泛型参数的具体属性类型
 AttributeInfo AttributeInfo.setArgsTypeMap(Map<String,Type> argsTypeMap)
           
 AttributeInfo AttributeInfo.setAttrAnnotations(List<Annotation> attrAnnotations)
           
 AttributeInfo AttributeInfo.setAttrArgs(Type... arguments)
           
 AttributeInfo AttributeInfo.setAttrClaz(Class clazz)
           
 AttributeInfo AttributeInfo.setAttrName(String attrName)
           
 AttributeInfo AttributeInfo.setPojoClaz(Class pojoClaz)
           
 

org.test4j.datafilling.fillerAttributeInfo 的使用
 

参数类型为 AttributeInfoorg.test4j.datafilling.filler 中的方法
 void CollectionFiller.fillCollection(Collection collInstance, AttributeInfo collItemAttribute)
          It fills a collection with the required number of elements of the required type.
 Object ArrayFiller.fillingArray(AttributeInfo attribute)
          It returns an Array with the first element set
 Collection CollectionFiller.fillingCollection(AttributeInfo attribute)
           
 Object EnumFiller.fillingEnum(AttributeInfo attribute)
           
 Map MapFiller.fillingMap(AttributeInfo attribute)
          It manufactures and returns a Map with at least one element in it It fills a Map with the required number of elements of the required type.
<T> T
PoJoFiller.fillingPoJo(AttributeInfo pojoAttr, int depth)
          Generic method which returns an instance of the given class filled with dummy values
<T> T
PrimitiveFiller.fillingPrimitive(AttributeInfo attribute)
          It resolves and returns the primitive value depending on the type
 String StringFiller.fillingString(AttributeInfo attribute)
          It creates and returns a String value, eventually customised by annotations
 Object PoJoFiller.fillingWithConstructorsOrFactory(AttributeInfo attrinbuteInfo)
          It attempts to create an instance of the given class
使用工厂方法创建实例对象 This method attempts to create an instance of the given argument for classes without setters.
protected  Object PrimitiveFiller.fillWith(AttributeInfo attribute)
           
 

org.test4j.datafilling.filler.pojoAttributeInfo 的使用
 

参数类型为 AttributeInfoorg.test4j.datafilling.filler.pojo 中的方法
<T> T
SetterMethodFiller.fillingWithSetter(AttributeInfo pojoAttr, int depth)
           
 Object FactoryMethodFiller.newInstanceUseFactoryMethod(AttributeInfo attrinbute)
          If no publicly accessible constructors are available, the best we can do is to find a constructor (e.g. getInstance())
A candidate factory method is a method which returns the Class type
 

org.test4j.datafilling.filler.primitiveAttributeInfo 的使用
 

参数类型为 AttributeInfoorg.test4j.datafilling.filler.primitive 中的方法
 Short ShortFiller.fillWith(AttributeInfo attribute)
           
 Long LongFiller.fillWith(AttributeInfo attribute)
           
 Integer IntegerFiller.fillWith(AttributeInfo attribute)
           
 Float FloatFiller.fillWith(AttributeInfo attribute)
           
 Double DoubleFiller.fillWith(AttributeInfo attribute)
           
 Character CharacterFiller.fillWith(AttributeInfo attribute)
           
 Byte ByteFiller.fillWith(AttributeInfo attribute)
           
 Boolean BooleanFiller.fillWith(AttributeInfo attribute)
          It returns the boolean value indicated in the annotation.
 

org.test4j.datafilling.strategyAttributeInfo 的使用
 

参数类型为 AttributeInfoorg.test4j.datafilling.strategy 中的方法
 Byte RandomDataFactory.getByte(AttributeInfo attribute)
          It returns a byte/Byte value.
 Byte DataFactory.getByte(AttributeInfo attribute)
          It returns a byte/Byte value.
 Byte RandomDataFactory.getByteInRange(byte minValue, byte maxValue, AttributeInfo attribute)
          It returns a byte/Byte within min and max value (included).
 Byte DataFactory.getByteInRange(byte minValue, byte maxValue, AttributeInfo attribute)
          It returns a byte/Byte within min and max value (included).
 Character RandomDataFactory.getCharacter(AttributeInfo attribute)
          It returns a char/Character value.
 Character DataFactory.getCharacter(AttributeInfo attribute)
          It returns a char/Character value.
 Character RandomDataFactory.getCharacterInRange(char minValue, char maxValue, AttributeInfo attribute)
          It returns a char/Character value between min and max value (included).
 Character DataFactory.getCharacterInRange(char minValue, char maxValue, AttributeInfo attribute)
          It returns a char/Character value between min and max value (included).
 Double RandomDataFactory.getDouble(AttributeInfo attribute)
          It returns a double/Double value
 Double DataFactory.getDouble(AttributeInfo attribute)
          It returns a double/Double value
 Double RandomDataFactory.getDoubleInRange(double minValue, double maxValue, AttributeInfo attribute)
          It returns a double/Double value between min and max value (included).
 Double DataFactory.getDoubleInRange(double minValue, double maxValue, AttributeInfo attribute)
          It returns a double/Double value between min and max value (included).
 Float RandomDataFactory.getFloat(AttributeInfo attribute)
          It returns a float/Float value.
 Float DataFactory.getFloat(AttributeInfo attribute)
          It returns a float/Float value.
 Float RandomDataFactory.getFloatInRange(float minValue, float maxValue, AttributeInfo attribute)
          It returns a float/Float value between min and max value (included).
 Float DataFactory.getFloatInRange(float minValue, float maxValue, AttributeInfo attribute)
          It returns a float/Float value between min and max value (included).
 Integer RandomDataFactory.getInteger(AttributeInfo attribute)
          It returns an int/Integer value.
 Integer DataFactory.getInteger(AttributeInfo attribute)
          It returns an int/Integer value.
 int RandomDataFactory.getIntegerInRange(int minValue, int maxValue, AttributeInfo attribute)
          It returns an int/Integer value between min and max value (included).
 int DataFactory.getIntegerInRange(int minValue, int maxValue, AttributeInfo attribute)
          It returns an int/Integer value between min and max value (included).
 Long RandomDataFactory.getLong(AttributeInfo attribute)
          This implementation returns the current time in milliseconds.
 Long DataFactory.getLong(AttributeInfo attribute)
          It returns a long/Long value.
 Long RandomDataFactory.getLongInRange(long minValue, long maxValue, AttributeInfo attribute)
          It returns a long/Long value between min and max value (included).
 Long DataFactory.getLongInRange(long minValue, long maxValue, AttributeInfo attribute)
          It returns a long/Long value between min and max value (included).
 Short RandomDataFactory.getShort(AttributeInfo attribute)
          It returns a short/Short value.
 Short DataFactory.getShort(AttributeInfo attribute)
          It returns a short/Short value.
 Short RandomDataFactory.getShortInRange(short minValue, short maxValue, AttributeInfo attribute)
          It returns a short/Short value between min and max value (included).
 Short DataFactory.getShortInRange(short minValue, short maxValue, AttributeInfo attribute)
          It returns a short/Short value between min and max value (included).
 String RandomDataFactory.getStringOfLength(int length, AttributeInfo attribute)
          It returns a String of length characters.
 String DataFactory.getStringOfLength(int length, AttributeInfo attribute)
          It returns a String of length characters.
 String RandomDataFactory.getStringValue(AttributeInfo attribute)
          It returns a string value
 String DataFactory.getStringValue(AttributeInfo attribute)
          It returns a string value
 



Copyright © 2013. All rights reserved.