org.test4j.datafilling.filler
类 MapFiller
java.lang.Object
org.test4j.datafilling.Filler
org.test4j.datafilling.filler.MapFiller
public class MapFiller
- extends Filler
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapFiller
public MapFiller(DataFactory strategy,
Map<String,Type> argsTypeMap)
fillingMap
public Map 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.
This method has a so-called side-effect. It updates the Map given as
argument.
- 参数:
attribute - The type of the POJO map attribute
- 抛出:
PoJoFillException - If an error occurred while creating the Map
object
createDefaultMap
public static Map createDefaultMap(Class attributeType)
- It manufactures and returns a default instance for each map type
返回一个默认的map实例
The default implementation for a ConcurrentMap is
ConcurrentHashMap
The default implementation for a SortedMap is a TreeMap
The default Map is none of the above was recognised is a HashMap
- 参数:
attributeType - The attribute type
- 返回:
- A default instance for each map type
Copyright © 2013. All rights reserved.