use of com.tvd12.calabash.core.EntityMap in project calabash by youngmonkeys.
the class SimpleEntityMapManager method addStatistics.
@Override
public void addStatistics(Map<String, Object> statistics) {
synchronized (maps) {
statistics.put("numberOfMaps", maps.size());
List<Map<String, Object>> mapStats = new ArrayList<>();
for (String mapName : maps.keySet()) {
EntityMap map = maps.get(mapName);
Map<String, Object> mapStat = new HashMap<>();
mapStat.put("name", mapName);
((StatisticsAware) map).addStatistics(mapStat);
mapStats.add(mapStat);
}
statistics.put("maps", mapStats);
}
}
Aggregations