org.test4j.datafilling.filler
类 MapFiller

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

public class MapFiller
extends Filler


字段摘要
 
从类 org.test4j.datafilling.Filler 继承的字段
argsTypeMap, strategy
 
构造方法摘要
MapFiller(DataFactory strategy, Map<String,Type> argsTypeMap)
           
 
方法摘要
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
 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.
 
从类 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
 

构造方法详细信息

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.