All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.engine.facades.StatisticsFacadeImpl Maven / Gradle / Ivy

The newest version!
package net.jqwik.engine.facades;

import java.util.*;

import net.jqwik.api.lifecycle.*;
import net.jqwik.api.statistics.*;
import net.jqwik.engine.hooks.statistics.*;

/**
 * Is loaded through reflection in api module
 */
public class StatisticsFacadeImpl extends Statistics.StatisticsFacade {

	public static final String DEFAULT_LABEL = "statistics";

	@Override
	public StatisticsCollector collectorByLabel(String label) {
		Store> statisticsStore = Store.get(StatisticsCollectorImpl.COLLECTORS_ID);
		return statisticsStore.get().get(label);
	}

	@Override
	public StatisticsCollector defaultCollector() {
		return collectorByLabel(DEFAULT_LABEL);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy