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

step.plans.assertions.PerformanceAssertSession Maven / Gradle / Ivy

package step.plans.assertions;

import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import step.artefacts.Aggregation;
import step.core.reports.Measure;

public class PerformanceAssertSession {

	private final ConcurrentHashMap aggregations = new ConcurrentHashMap<>();
	
	public final void addMeasure(Measure measure) {
		Aggregation aggregation = aggregations.computeIfAbsent(measure.getName(), name->new Aggregation(name));
		aggregation.addMeasure(measure);
	}

	public Set> getAggregations() {
		return aggregations.entrySet();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy