org.test4j.datafilling.filler
类 CollectionFiller
java.lang.Object
org.test4j.datafilling.Filler
org.test4j.datafilling.filler.CollectionFiller
public class CollectionFiller
- extends Filler
| 从类 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 filledcollItemAttribute - The type of the collection element and The
generic type arguments for the current generic class instance
- 抛出:
Exception
Copyright © 2013. All rights reserved.