org.test4j.datafilling.filler
类 CollectionFiller

java.lang.Object
  继承者 org.test4j.datafilling.Filler
      继承者 org.test4j.datafilling.filler.CollectionFiller

public class CollectionFiller
extends Filler


字段摘要
 
从类 org.test4j.datafilling.Filler 继承的字段
argsTypeMap, strategy
 
构造方法摘要
CollectionFiller(DataFactory strategy, Map<String,Type> argsTypeMap)
           
 
方法摘要
static Collection createDefaultCollection(Class collectionType)
          Given a collection type it returns an instance The default type for a List is an ArrayList The default type for a Queue is a LinkedList The default type for a Set is a HashSet
 void fillCollection(Collection collInstance, AttributeInfo collItemAttribute)
          It fills a collection with the required number of elements of the required type.
 Collection fillingCollection(AttributeInfo attribute)
           
 
从类 org.test4j.datafilling.Filler 继承的方法
filling, filling, filling, filling, filling, fillingAttribute, returnAttributeDataStrategyValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CollectionFiller

public CollectionFiller(DataFactory strategy,
                        Map<String,Type> argsTypeMap)
方法详细信息

fillingCollection

public Collection fillingCollection(AttributeInfo attribute)

createDefaultCollection

public static Collection createDefaultCollection(Class collectionType)
Given a collection type it returns an instance

参数:
collectionType - The collection type *
返回:
an instance of the collection type

fillCollection

public void fillCollection(Collection collInstance,
                           AttributeInfo collItemAttribute)
                    throws Exception
It fills a collection with the required number of elements of the required type.

This method has a so-called side effect. It updates the collection passed as argument.

参数:
collInstance - The Collection to be filled
collItemAttribute - The type of the collection element and The generic type arguments for the current generic class instance
抛出:
Exception


Copyright © 2013. All rights reserved.